home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-04-01 | 25.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Apr 1 02:51:52 1996, modified Mon Apr 1 02:51:52 1996, creator 'CWIE', type ASCII, 25386 bytes "ICAPI.h" , at 0x63aa 456 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 49 43 41 50 49 2e | 68 00 00 00 00 00 00 00 |..ICAPI.|h.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 63 2a 00 | 00 01 c8 ad 85 3b 98 ad |.....c*.|.....;..|
|00000060| 85 3b 98 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.;......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 19 50 00 00 |........|.....P..|
|00000080| 2f 2a 20 a5 a5 a5 53 74 | 61 72 74 20 48 65 61 64 |/* ...St|art Head|
|00000090| 65 72 a5 a5 a5 20 2a 2f | 0d 0d 2f 2a 20 46 69 6c |er... */|../* Fil|
|000000a0| 65 3a 20 20 20 20 20 20 | 20 20 20 49 43 41 50 49 |e: | ICAPI|
|000000b0| 2e 68 20 28 69 6e 74 66 | 29 0d 20 2a 20 47 65 6e |.h (intf|). * Gen|
|000000c0| 65 72 61 74 65 64 20 62 | 79 3a 20 31 2e 30 64 34 |erated b|y: 1.0d4|
|000000d0| 0d 20 2a 20 46 6f 72 3a | 20 20 20 20 20 20 20 20 |. * For:| |
|000000e0| 20 20 49 43 20 31 2e 32 | 0d 20 2a 20 4f 6e 3a 20 | IC 1.2|. * On: |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 4d 6f 6e 64 61 79 | | Monday|
|00000100| 2c 20 32 35 20 53 65 70 | 74 65 6d 62 65 72 20 31 |, 25 Sep|tember 1|
|00000110| 39 39 35 2c 20 31 39 3a | 32 38 3a 31 32 0d 20 2a |995, 19:|28:12. *|
|00000120| 20 0d 20 2a 20 54 68 69 | 73 20 66 69 6c 65 20 69 | . * Thi|s file i|
|00000130| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 49 6e |s part o|f the In|
|00000140| 74 65 72 6e 65 74 20 43 | 6f 6e 66 69 67 75 72 61 |ternet C|onfigura|
|00000150| 74 69 6f 6e 20 73 79 73 | 74 65 6d 20 61 6e 64 0d |tion sys|tem and.|
|00000160| 20 2a 20 69 73 20 70 6c | 61 63 65 64 20 69 6e 20 | * is pl|aced in |
|00000170| 74 68 65 20 70 75 62 6c | 69 63 20 64 6f 6d 61 69 |the publ|ic domai|
|00000180| 6e 20 66 6f 72 20 74 68 | 65 20 62 65 6e 65 66 69 |n for th|e benefi|
|00000190| 74 20 6f 66 20 61 6c 6c | 2e 0d 20 2a 2f 0d 0d 2f |t of all|.. */../|
|000001a0| 2a 20 a5 a5 a5 45 6e 64 | 20 48 65 61 64 65 72 a5 |* ...End| Header.|
|000001b0| a5 a5 20 2a 2f 0d 0d 2f | 2a 0d 09 49 4d 50 4f 52 |.. */../|*..IMPOR|
|000001c0| 54 41 4e 54 20 4e 4f 54 | 45 53 20 41 42 4f 55 54 |TANT NOT|ES ABOUT|
|000001d0| 20 54 48 45 20 43 20 43 | 4f 4e 56 45 52 53 49 4f | THE C C|ONVERSIO|
|000001e0| 4e 0d 09 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |N..-----|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 09 0d 09 6f 20 50 |--------|-....o P|
|00000210| 61 73 63 61 6c 20 22 76 | 61 72 22 20 70 61 72 61 |ascal "v|ar" para|
|00000220| 6d 65 74 65 72 73 20 61 | 72 65 20 63 6f 6e 76 65 |meters a|re conve|
|00000230| 72 74 65 64 20 66 72 6f | 6d 20 22 76 61 72 20 78 |rted fro|m "var x|
|00000240| 20 3a 20 79 22 20 74 6f | 20 22 79 20 2a 78 22 2e | : y" to| "y *x".|
|00000250| 20 20 54 68 69 73 0d 09 | 20 20 6d 65 61 6e 73 20 | This..| means |
|00000260| 74 68 61 74 20 77 68 65 | 6e 20 79 6f 75 20 73 65 |that whe|n you se|
|00000270| 65 20 74 68 65 20 70 61 | 72 61 6d 65 74 65 72 20 |e the pa|rameter |
|00000280| 22 79 20 2a 78 22 20 79 | 6f 75 20 73 68 6f 75 6c |"y *x" y|ou shoul|
|00000290| 64 20 62 65 20 61 77 61 | 72 65 20 74 68 61 74 0d |d be awa|re that.|
|000002a0| 09 09 09 79 6f 75 20 2a | 63 61 6e 6e 6f 74 20 70 |...you *|cannot p|
|000002b0| 61 73 73 20 69 6e 20 6e | 69 6c 2a 2e 20 20 49 6e |ass in n|il*. In|
|000002c0| 20 66 75 74 75 72 65 20 | 74 68 69 73 20 72 65 73 | future |this res|
|000002d0| 74 72 69 63 74 69 6f 6e | 20 6d 61 79 20 62 65 20 |triction| may be |
|000002e0| 65 61 73 65 64 2c 0d 09 | 09 09 65 73 70 65 63 69 |eased,..|..especi|
|000002f0| 61 6c 6c 79 20 66 6f 72 | 20 74 68 65 20 61 74 74 |ally for| the att|
|00000300| 72 20 70 61 72 61 6d 65 | 74 65 72 20 74 6f 20 49 |r parame|ter to I|
|00000310| 43 47 65 74 50 72 65 66 | 2e 20 20 50 61 72 61 6d |CGetPref|. Param|
|00000320| 65 74 65 72 73 20 77 68 | 65 72 65 20 6e 69 6c 0d |eters wh|ere nil.|
|00000330| 09 09 09 69 73 20 6c 65 | 67 61 6c 20 61 72 65 20 |...is le|gal are |
|00000340| 64 65 63 6c 61 72 65 64 | 20 75 73 69 6e 67 20 74 |declared| using t|
|00000350| 68 65 20 65 78 70 6c 69 | 63 69 74 20 70 6f 69 6e |he expli|cit poin|
|00000360| 74 65 72 20 74 79 70 65 | 2c 20 69 65 20 22 79 50 |ter type|, ie "yP|
|00000370| 74 72 20 78 22 2e 0d 0d | 09 6f 20 53 74 72 69 6e |tr x"...|.o Strin|
|00000380| 67 73 20 61 72 65 20 2a | 50 61 73 63 61 6c 2a 20 |gs are *|Pascal* |
|00000390| 73 74 72 69 6e 67 73 2e | 20 20 54 68 69 73 20 6d |strings.| This m|
|000003a0| 65 61 6e 73 20 74 68 61 | 74 20 74 68 65 79 20 6d |eans tha|t they m|
|000003b0| 75 73 74 20 62 65 20 77 | 6f 72 64 20 61 6c 69 67 |ust be w|ord alig|
|000003c0| 6e 65 64 2e 0d 09 09 4d | 50 57 20 61 6e 64 20 54 |ned....M|PW and T|
|000003d0| 68 69 6e 6b 20 43 20 64 | 6f 20 74 68 69 73 20 61 |hink C d|o this a|
|000003e0| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 2e 20 20 54 |utomatic|ally. T|
|000003f0| 68 65 20 6c 61 73 74 20 | 74 69 6d 65 20 49 20 63 |he last |time I c|
|00000400| 68 65 63 6b 2c 20 4d 65 | 74 72 6f 77 65 72 6b 73 |heck, Me|trowerks|
|00000410| 0d 09 09 43 20 64 6f 65 | 73 20 6e 6f 74 2e 20 20 |...C doe|s not. |
|00000420| 49 66 20 69 74 20 73 74 | 69 6c 6c 20 64 6f 65 73 |If it st|ill does|
|00000430| 6e 27 74 2c 20 74 68 65 | 6e 20 49 4d 48 4f 20 69 |n't, the|n IMHO i|
|00000440| 74 27 73 20 61 20 62 75 | 67 20 69 6e 20 74 68 65 |t's a bu|g in the|
|00000450| 69 72 20 63 6f 6d 70 69 | 6c 65 72 0d 09 09 61 6e |ir compi|ler...an|
|00000460| 64 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 72 65 70 |d you sh|ould rep|
|00000470| 6f 72 74 20 69 74 20 74 | 6f 20 74 68 65 6d 2e 0d |ort it t|o them..|
|00000480| 0d 09 6f 20 54 68 65 20 | 63 61 6e 6f 6e 69 63 61 |..o The |canonica|
|00000490| 6c 20 49 6e 74 65 72 6e | 65 74 20 43 6f 6e 66 69 |l Intern|et Confi|
|000004a0| 67 20 69 6e 74 65 72 66 | 61 63 65 20 69 73 20 64 |g interf|ace is d|
|000004b0| 65 66 69 6e 65 64 20 69 | 6e 20 50 61 73 63 61 6c |efined i|n Pascal|
|000004c0| 2e 20 20 54 68 65 73 65 | 0d 09 09 68 65 61 64 65 |. These|...heade|
|000004d0| 72 73 20 68 61 76 65 20 | 6e 6f 74 20 62 65 65 6e |rs have |not been|
|000004e0| 20 74 68 6f 72 6f 75 67 | 68 6c 79 20 74 65 73 74 | thoroug|hly test|
|000004f0| 65 64 2e 20 20 49 66 20 | 74 68 65 72 65 20 69 73 |ed. If |there is|
|00000500| 20 61 20 63 6f 6e 66 6c | 69 63 74 20 62 65 74 77 | a confl|ict betw|
|00000510| 65 65 6e 0d 09 09 74 68 | 65 73 65 20 68 65 61 64 |een...th|ese head|
|00000520| 65 72 73 20 61 6e 64 20 | 74 68 65 20 50 61 73 63 |ers and |the Pasc|
|00000530| 61 6c 20 69 6e 74 65 72 | 66 61 63 65 73 2c 20 74 |al inter|faces, t|
|00000540| 68 65 20 50 61 73 63 61 | 6c 20 73 68 6f 75 6c 64 |he Pasca|l should|
|00000550| 20 74 61 6b 65 20 70 72 | 65 63 65 64 65 6e 63 65 | take pr|ecedence|
|00000560| 2e 0d 2a 2f 0d 0d 2f 2a | 20 2f 2f 2f 2f 2f 2f 2f |..*/../*| ///////|
|00000570| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000580| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000590| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000005a0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000005b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 20 2a 2f 0d 0d 23 |////////|// */..#|
|000005c0| 69 66 6e 64 65 66 20 5f | 5f 49 43 41 50 49 5f 5f |ifndef _|_ICAPI__|
|000005d0| 0d 23 64 65 66 69 6e 65 | 20 5f 5f 49 43 41 50 49 |.#define| __ICAPI|
|000005e0| 5f 5f 0d 0d 23 69 66 6e | 64 65 66 20 5f 5f 54 59 |__..#ifn|def __TY|
|000005f0| 50 45 53 5f 5f 0d 23 69 | 6e 63 6c 75 64 65 20 3c |PES__.#i|nclude <|
|00000600| 54 79 70 65 73 2e 68 3e | 0d 23 65 6e 64 69 66 0d |Types.h>|.#endif.|
|00000610| 0d 23 69 66 6e 64 65 66 | 20 5f 5f 46 49 4c 45 53 |.#ifndef| __FILES|
|00000620| 5f 5f 0d 23 69 6e 63 6c | 75 64 65 20 3c 46 69 6c |__.#incl|ude <Fil|
|00000630| 65 73 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 0d 23 69 |es.h>.#e|ndif..#i|
|00000640| 66 6e 64 65 66 20 5f 5f | 49 43 54 59 50 45 53 5f |fndef __|ICTYPES_|
|00000650| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 49 43 54 79 |_.#inclu|de <ICTy|
|00000660| 70 65 73 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |pes.h>.#|endif..#|
|00000670| 69 66 6e 64 65 66 20 5f | 5f 49 43 4b 45 59 53 5f |ifndef _|_ICKEYS_|
|00000680| 5f 0d 23 69 6e 63 6c 75 | 64 65 20 3c 49 43 4b 65 |_.#inclu|de <ICKe|
|00000690| 79 73 2e 68 3e 0d 23 65 | 6e 64 69 66 0d 0d 2f 2a |ys.h>.#e|ndif../*|
|000006a0| 20 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f | ///////|////////|
|000006b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000006c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000006d0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000006e0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000006f0| 2f 2f 20 2a 2f 0d 0d 2f | 2a 20 a5 a5 a5 53 74 61 |// */../|* ...Sta|
|00000700| 72 74 20 49 43 41 50 49 | 2e 68 a5 a5 a5 20 2a 2f |rt ICAPI|.h... */|
|00000710| 0d 0d 2f 2a 20 2a 2a 2a | 2a 2a 20 53 74 61 72 74 |../* ***|** Start|
|00000720| 69 6e 67 20 55 70 20 61 | 6e 64 20 53 68 75 74 74 |ing Up a|nd Shutt|
|00000730| 69 6e 67 20 44 6f 77 6e | 20 2a 2a 2a 2a 2a 20 2a |ing Down| ***** *|
|00000740| 2f 0d 0d 70 61 73 63 61 | 6c 20 49 43 45 72 72 6f |/..pasca|l ICErro|
|00000750| 72 20 49 43 53 74 61 72 | 74 28 49 43 49 6e 73 74 |r ICStar|t(ICInst|
|00000760| 61 6e 63 65 20 2a 69 6e | 73 74 2c 20 4f 53 54 79 |ance *in|st, OSTy|
|00000770| 70 65 20 63 72 65 61 74 | 6f 72 29 3b 0d 20 20 2f |pe creat|or);. /|
|00000780| 2a 20 43 61 6c 6c 20 74 | 68 69 73 20 61 74 20 61 |* Call t|his at a|
|00000790| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 6e 69 74 69 |pplicati|on initi|
|000007a0| 61 6c 69 73 61 74 69 6f | 6e 2e 20 53 65 74 20 63 |alisatio|n. Set c|
|000007b0| 72 65 61 74 6f 72 20 74 | 6f 20 79 6f 75 72 20 61 |reator t|o your a|
|000007c0| 70 70 6c 69 63 61 74 69 | 6f 6e 0d 20 20 20 2a 20 |pplicati|on. * |
|000007d0| 63 72 65 61 74 6f 72 20 | 74 6f 20 61 6c 6c 6f 77 |creator |to allow|
|000007e0| 20 66 6f 72 20 66 75 74 | 75 72 65 20 65 78 70 61 | for fut|ure expa|
|000007f0| 6e 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 49 43 20 |nsion of| the IC |
|00000800| 73 79 73 74 65 6d 2e 20 | 52 65 74 75 72 6e 73 0d |system. |Returns.|
|00000810| 20 20 20 2a 20 69 6e 73 | 74 20 61 73 20 61 20 63 | * ins|t as a c|
|00000820| 6f 6e 6e 65 63 74 69 6f | 6e 20 74 6f 20 74 68 65 |onnectio|n to the|
|00000830| 20 49 43 20 73 79 73 74 | 65 6d 2e 0d 20 20 20 2a | IC syst|em.. *|
|00000840| 2f 0d 0d 70 61 73 63 61 | 6c 20 49 43 45 72 72 6f |/..pasca|l ICErro|
|00000850| 72 20 49 43 53 74 6f 70 | 28 49 43 49 6e 73 74 61 |r ICStop|(ICInsta|
|00000860| 6e 63 65 20 69 6e 73 74 | 29 3b 0d 20 20 2f 2a 20 |nce inst|);. /* |
|00000870| 49 74 20 69 73 20 69 6c | 6c 65 67 61 6c 20 74 6f |It is il|legal to|
|00000880| 20 63 61 6c 6c 20 74 68 | 69 73 20 72 6f 75 74 69 | call th|is routi|
|00000890| 6e 65 20 69 6e 73 69 64 | 65 20 61 20 49 43 42 65 |ne insid|e a ICBe|
|000008a0| 67 69 6e 2f 45 6e 64 20 | 70 61 69 72 2e 0d 20 20 |gin/End |pair.. |
|000008b0| 20 2a 20 43 61 6c 6c 20 | 74 68 69 73 20 61 74 20 | * Call |this at |
|000008c0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 69 6e 69 74 |applicat|ion init|
|000008d0| 69 61 6c 69 73 61 74 69 | 6f 6e 2c 20 61 66 74 65 |ialisati|on, afte|
|000008e0| 72 20 77 68 69 63 68 20 | 69 6e 73 74 0d 20 20 20 |r which |inst. |
|000008f0| 2a 20 69 73 20 6e 6f 20 | 6c 6f 6e 67 65 72 20 76 |* is no |longer v|
|00000900| 61 6c 69 64 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |alid con|nection |
|00000910| 74 6f 20 49 43 2e 0d 20 | 20 20 2a 2f 0d 0d 2f 2a |to IC.. | */../*|
|00000920| 20 2a 2a 2a 2a 2a 20 53 | 70 65 63 69 66 79 69 6e | ***** S|pecifyin|
|00000930| 67 20 61 20 43 6f 6e 66 | 69 67 75 72 61 74 69 6f |g a Conf|iguratio|
|00000940| 6e 20 2a 2a 2a 2a 2a 20 | 2a 2f 0d 0d 70 61 73 63 |n ***** |*/..pasc|
|00000950| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 46 69 6e |al ICErr|or ICFin|
|00000960| 64 43 6f 6e 66 69 67 46 | 69 6c 65 28 49 43 49 6e |dConfigF|ile(ICIn|
|00000970| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 73 68 6f |stance i|nst, sho|
|00000980| 72 74 20 63 6f 75 6e 74 | 2c 20 49 43 44 69 72 53 |rt count|, ICDirS|
|00000990| 70 65 63 41 72 72 61 79 | 50 74 72 20 66 6f 6c 64 |pecArray|Ptr fold|
|000009a0| 65 72 73 29 3b 0d 20 20 | 2f 2a 20 49 74 20 69 73 |ers);. |/* It is|
|000009b0| 20 69 6c 6c 65 67 61 6c | 20 74 6f 20 63 61 6c 6c | illegal| to call|
|000009c0| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 20 69 6e | this ro|utine in|
|000009d0| 73 69 64 65 20 61 20 49 | 43 42 65 67 69 6e 2f 45 |side a I|CBegin/E|
|000009e0| 6e 64 20 70 61 69 72 2e | 0d 20 20 20 2a 20 43 61 |nd pair.|. * Ca|
|000009f0| 6c 6c 20 74 6f 20 63 6f | 6e 66 69 67 75 72 65 20 |ll to co|nfigure |
|00000a00| 74 68 69 73 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 |this con|nection |
|00000a10| 74 6f 20 49 43 2e 0d 20 | 20 20 2a 20 53 65 74 20 |to IC.. | * Set |
|00000a20| 63 6f 75 6e 74 20 61 73 | 20 74 68 65 20 6e 75 6d |count as| the num|
|00000a30| 62 65 72 20 6f 66 20 76 | 61 6c 69 64 20 65 6c 65 |ber of v|alid ele|
|00000a40| 6d 65 6e 74 73 20 69 6e | 20 66 6f 6c 64 65 72 73 |ments in| folders|
|00000a50| 2e 0d 20 20 20 2a 20 53 | 65 74 20 66 6f 6c 64 65 |.. * S|et folde|
|00000a60| 72 73 20 74 6f 20 61 20 | 70 6f 69 6e 74 65 72 20 |rs to a |pointer |
|00000a70| 74 6f 20 74 68 65 20 66 | 6f 6c 64 65 72 73 20 74 |to the f|olders t|
|00000a80| 6f 20 73 65 61 72 63 68 | 2e 0d 20 20 20 2a 20 53 |o search|.. * S|
|00000a90| 65 74 74 69 6e 67 20 63 | 6f 75 6e 74 20 74 6f 20 |etting c|ount to |
|00000aa0| 30 20 61 6e 64 20 66 6f | 6c 64 65 72 73 20 74 6f |0 and fo|lders to|
|00000ab0| 20 6e 69 6c 20 69 73 20 | 4f 4b 2e 0d 20 20 20 2a | nil is |OK.. *|
|00000ac0| 20 53 65 61 72 63 68 65 | 73 20 74 68 65 20 73 70 | Searche|s the sp|
|00000ad0| 65 63 69 66 69 65 64 20 | 66 6f 6c 64 65 72 73 20 |ecified |folders |
|00000ae0| 61 6e 64 20 74 68 65 6e | 20 74 68 65 20 50 72 65 |and then| the Pre|
|00000af0| 66 65 72 65 6e 63 65 73 | 20 66 6f 6c 64 65 72 0d |ferences| folder.|
|00000b00| 20 20 20 2a 20 69 6e 20 | 61 20 75 6e 73 70 65 63 | * in |a unspec|
|00000b10| 69 66 69 65 64 20 6d 61 | 6e 6e 65 72 2e 0d 20 20 |ified ma|nner.. |
|00000b20| 20 2a 2f 0d 0d 70 61 73 | 63 61 6c 20 49 43 45 72 | */..pas|cal ICEr|
|00000b30| 72 6f 72 20 49 43 46 69 | 6e 64 55 73 65 72 43 6f |ror ICFi|ndUserCo|
|00000b40| 6e 66 69 67 46 69 6c 65 | 28 49 43 49 6e 73 74 61 |nfigFile|(ICInsta|
|00000b50| 6e 63 65 20 69 6e 73 74 | 2c 20 49 43 44 69 72 53 |nce inst|, ICDirS|
|00000b60| 70 65 63 20 2a 77 68 65 | 72 65 29 3b 0d 20 20 2f |pec *whe|re);. /|
|00000b70| 2a 20 52 65 71 75 69 72 | 65 73 20 49 43 20 31 2e |* Requir|es IC 1.|
|00000b80| 31 2e 0d 20 20 20 2a 20 | 49 74 20 69 73 20 69 6c |1.. * |It is il|
|00000b90| 6c 65 67 61 6c 20 74 6f | 20 63 61 6c 6c 20 74 68 |legal to| call th|
|00000ba0| 69 73 20 72 6f 75 74 69 | 6e 65 20 69 6e 73 69 64 |is routi|ne insid|
|00000bb0| 65 20 61 20 49 43 42 65 | 67 69 6e 2f 45 6e 64 20 |e a ICBe|gin/End |
|00000bc0| 70 61 69 72 2e 0d 20 20 | 20 2a 20 53 69 6d 69 6c |pair.. | * Simil|
|00000bd0| 61 72 20 74 6f 20 49 43 | 46 69 6e 64 43 6f 6e 66 |ar to IC|FindConf|
|00000be0| 69 67 46 69 6c 65 20 65 | 78 63 65 70 74 20 74 68 |igFile e|xcept th|
|00000bf0| 61 74 20 69 74 20 6f 6e | 6c 79 20 73 65 61 72 63 |at it on|ly searc|
|00000c00| 68 65 73 20 74 68 65 20 | 66 6f 6c 64 65 72 0d 20 |hes the |folder. |
|00000c10| 20 20 2a 20 73 70 65 63 | 69 66 69 65 64 20 69 6e | * spec|ified in|
|00000c20| 20 77 68 65 72 65 2e 20 | 20 49 66 20 74 68 65 20 | where. | If the |
|00000c30| 69 6e 70 75 74 20 70 61 | 72 61 6d 65 74 65 72 73 |input pa|rameters|
|00000c40| 20 61 72 65 20 76 61 6c | 69 64 20 74 68 65 20 72 | are val|id the r|
|00000c50| 6f 75 74 69 6e 65 0d 20 | 20 20 2a 20 77 69 6c 6c |outine. | * will|
|00000c60| 20 61 6c 77 61 79 73 20 | 73 75 63 63 65 73 73 66 | always |successf|
|00000c70| 75 6c 20 63 6f 6e 66 69 | 67 75 72 65 20 74 68 65 |ul confi|gure the|
|00000c80| 20 69 6e 73 74 61 6e 63 | 65 2c 20 63 72 65 61 74 | instanc|e, creat|
|00000c90| 69 6e 67 20 61 6e 0d 20 | 20 20 2a 20 65 6d 70 74 |ing an. | * empt|
|00000ca0| 79 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |y config|uration |
|00000cb0| 69 66 20 6e 65 63 65 73 | 73 61 72 79 0d 20 20 20 |if neces|sary. |
|00000cc0| 2a 20 46 6f 72 20 75 73 | 65 20 77 69 74 68 20 64 |* For us|e with d|
|00000cd0| 6f 75 62 6c 65 2d 63 6c | 69 63 6b 61 62 6c 65 20 |ouble-cl|ickable |
|00000ce0| 70 72 65 66 65 72 65 6e | 63 65 20 66 69 6c 65 73 |preferen|ce files|
|00000cf0| 2e 0d 20 20 20 2a 2f 0d | 0d 70 61 73 63 61 6c 20 |.. */.|.pascal |
|00000d00| 49 43 45 72 72 6f 72 20 | 49 43 47 65 6e 65 72 61 |ICError |ICGenera|
|00000d10| 6c 46 69 6e 64 43 6f 6e | 66 69 67 46 69 6c 65 28 |lFindCon|figFile(|
|00000d20| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|00000d30| 20 42 6f 6f 6c 65 61 6e | 20 73 65 61 72 63 68 5f | Boolean| search_|
|00000d40| 70 72 65 66 73 2c 20 42 | 6f 6f 6c 65 61 6e 20 63 |prefs, B|oolean c|
|00000d50| 61 6e 5f 63 72 65 61 74 | 65 2c 20 73 68 6f 72 74 |an_creat|e, short|
|00000d60| 20 63 6f 75 6e 74 2c 20 | 49 43 44 69 72 53 70 65 | count, |ICDirSpe|
|00000d70| 63 41 72 72 61 79 50 74 | 72 20 66 6f 6c 64 65 72 |cArrayPt|r folder|
|00000d80| 73 29 3b 0d 20 20 2f 2a | 20 52 65 71 75 69 72 65 |s);. /*| Require|
|00000d90| 73 20 49 43 20 31 2e 32 | 2e 0d 20 20 20 2a 20 49 |s IC 1.2|.. * I|
|00000da0| 74 20 69 73 20 69 6c 6c | 65 67 61 6c 20 74 6f 20 |t is ill|egal to |
|00000db0| 63 61 6c 6c 20 74 68 69 | 73 20 72 6f 75 74 69 6e |call thi|s routin|
|00000dc0| 65 20 69 6e 73 69 64 65 | 20 61 20 49 43 42 65 67 |e inside| a ICBeg|
|00000dd0| 69 6e 2f 45 6e 64 20 70 | 61 69 72 2e 0d 20 20 20 |in/End p|air.. |
|00000de0| 2a 20 43 61 6c 6c 20 74 | 6f 20 63 6f 6e 66 69 67 |* Call t|o config|
|00000df0| 75 72 65 20 74 68 69 73 | 20 63 6f 6e 6e 65 63 74 |ure this| connect|
|00000e00| 69 6f 6e 20 74 6f 20 49 | 43 2e 0d 20 20 20 2a 20 |ion to I|C.. * |
|00000e10| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 61 63 74 |This rou|tine act|
|00000e20| 73 20 61 73 20 61 20 6d | 6f 72 65 20 67 65 6e 65 |s as a m|ore gene|
|00000e30| 72 61 6c 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ral repl|acement |
|00000e40| 66 6f 72 0d 20 20 20 2a | 20 49 43 46 69 6e 64 43 |for. *| ICFindC|
|00000e50| 6f 6e 66 69 67 46 69 6c | 65 20 61 6e 64 20 49 43 |onfigFil|e and IC|
|00000e60| 46 69 6e 64 55 73 65 72 | 43 6f 6e 66 69 67 46 69 |FindUser|ConfigFi|
|00000e70| 6c 65 2e 0d 20 20 20 2a | 20 53 65 74 20 73 65 61 |le.. *| Set sea|
|00000e80| 72 63 68 5f 70 72 65 66 | 73 20 74 6f 20 74 72 75 |rch_pref|s to tru|
|00000e90| 65 20 69 66 20 79 6f 75 | 20 77 61 6e 74 20 69 74 |e if you| want it|
|00000ea0| 20 74 6f 20 73 65 61 72 | 63 68 20 74 68 65 20 70 | to sear|ch the p|
|00000eb0| 72 65 66 65 72 65 6e 63 | 65 73 20 66 6f 6c 64 65 |referenc|es folde|
|00000ec0| 72 2e 0d 20 20 20 2a 20 | 53 65 74 20 63 61 6e 5f |r.. * |Set can_|
|00000ed0| 63 72 65 61 74 65 20 74 | 6f 20 74 72 75 65 20 69 |create t|o true i|
|00000ee0| 66 20 79 6f 75 20 77 61 | 6e 74 20 69 74 20 74 6f |f you wa|nt it to|
|00000ef0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 63 72 65 61 | be able| to crea|
|00000f00| 74 65 20 61 20 6e 65 77 | 20 63 6f 6e 66 69 67 2e |te a new| config.|
|00000f10| 0d 20 20 20 2a 20 53 65 | 74 20 63 6f 75 6e 74 20 |. * Se|t count |
|00000f20| 61 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |as the n|umber of|
|00000f30| 20 76 61 6c 69 64 20 65 | 6c 65 6d 65 6e 74 73 20 | valid e|lements |
|00000f40| 69 6e 20 66 6f 6c 64 65 | 72 73 2e 0d 20 20 20 2a |in folde|rs.. *|
|00000f50| 20 53 65 74 20 66 6f 6c | 64 65 72 73 20 74 6f 20 | Set fol|ders to |
|00000f60| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|00000f70| 20 66 6f 6c 64 65 72 73 | 20 74 6f 20 73 65 61 72 | folders| to sear|
|00000f80| 63 68 2e 0d 20 20 20 2a | 20 53 65 74 74 69 6e 67 |ch.. *| Setting|
|00000f90| 20 63 6f 75 6e 74 20 74 | 6f 20 30 20 61 6e 64 20 | count t|o 0 and |
|00000fa0| 66 6f 6c 64 65 72 73 20 | 74 6f 20 6e 69 6c 20 69 |folders |to nil i|
|00000fb0| 73 20 4f 4b 2e 0d 20 20 | 20 2a 20 53 65 61 72 63 |s OK.. | * Searc|
|00000fc0| 68 65 73 20 74 68 65 20 | 73 70 65 63 69 66 69 65 |hes the |specifie|
|00000fd0| 64 20 66 6f 6c 64 65 72 | 73 20 61 6e 64 20 74 68 |d folder|s and th|
|00000fe0| 65 6e 20 6f 70 74 69 6f | 6e 61 6c 6c 79 20 74 68 |en optio|nally th|
|00000ff0| 65 20 50 72 65 66 65 72 | 65 6e 63 65 73 20 66 6f |e Prefer|ences fo|
|00001000| 6c 64 65 72 0d 20 20 20 | 2a 20 69 6e 20 61 20 75 |lder. |* in a u|
|00001010| 6e 73 70 65 63 69 66 69 | 65 64 20 6d 61 6e 6e 65 |nspecifi|ed manne|
|00001020| 72 2e 0d 20 20 20 2a 2f | 0d 0d 70 61 73 63 61 6c |r.. */|..pascal|
|00001030| 20 49 43 45 72 72 6f 72 | 20 49 43 43 68 6f 6f 73 | ICError| ICChoos|
|00001040| 65 43 6f 6e 66 69 67 28 | 49 43 49 6e 73 74 61 6e |eConfig(|ICInstan|
|00001050| 63 65 20 69 6e 73 74 29 | 3b 0d 20 20 2f 2a 20 52 |ce inst)|;. /* R|
|00001060| 65 71 75 69 72 65 73 20 | 49 43 20 31 2e 32 2e 0d |equires |IC 1.2..|
|00001070| 20 20 20 2a 20 49 74 20 | 69 73 20 69 6c 6c 65 67 | * It |is illeg|
|00001080| 61 6c 20 74 6f 20 63 61 | 6c 6c 20 74 68 69 73 20 |al to ca|ll this |
|00001090| 72 6f 75 74 69 6e 65 20 | 69 6e 73 69 64 65 20 61 |routine |inside a|
|000010a0| 20 49 43 42 65 67 69 6e | 2f 45 6e 64 20 70 61 69 | ICBegin|/End pai|
|000010b0| 72 2e 0d 20 20 20 2a 20 | 52 65 71 75 65 73 74 73 |r.. * |Requests|
|000010c0| 20 74 68 65 20 75 73 65 | 72 20 74 6f 20 63 68 6f | the use|r to cho|
|000010d0| 6f 73 65 20 61 20 63 6f | 6e 66 69 67 75 72 61 74 |ose a co|nfigurat|
|000010e0| 69 6f 6e 2c 20 74 79 70 | 69 63 61 6c 6c 79 20 75 |ion, typ|ically u|
|000010f0| 73 69 6e 67 20 73 6f 6d | 65 0d 20 20 20 2a 20 73 |sing som|e. * s|
|00001100| 6f 72 74 20 6f 66 20 6d | 6f 64 61 6c 20 64 69 61 |ort of m|odal dia|
|00001110| 6c 6f 67 2e 20 49 66 20 | 74 68 65 20 75 73 65 72 |log. If |the user|
|00001120| 20 63 61 6e 63 65 6c 73 | 20 74 68 65 20 64 69 61 | cancels| the dia|
|00001130| 6c 6f 67 20 74 68 65 20 | 63 6f 6e 66 69 67 75 72 |log the |configur|
|00001140| 61 74 69 6f 6e 0d 20 20 | 20 2a 20 73 74 61 74 65 |ation. | * state|
|00001150| 20 77 69 6c 6c 20 62 65 | 20 75 6e 61 66 66 65 63 | will be| unaffec|
|00001160| 74 65 64 2e 0d 20 20 20 | 2a 2f 0d 0d 70 61 73 63 |ted.. |*/..pasc|
|00001170| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 43 68 6f |al ICErr|or ICCho|
|00001180| 6f 73 65 4e 65 77 43 6f | 6e 66 69 67 28 49 43 49 |oseNewCo|nfig(ICI|
|00001190| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 29 3b 0d 20 |nstance |inst);. |
|000011a0| 20 2f 2a 20 52 65 71 75 | 69 72 65 73 20 49 43 20 | /* Requ|ires IC |
|000011b0| 31 2e 32 2e 0d 20 20 20 | 2a 20 49 74 20 69 73 20 |1.2.. |* It is |
|000011c0| 69 6c 6c 65 67 61 6c 20 | 74 6f 20 63 61 6c 6c 20 |illegal |to call |
|000011d0| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 20 69 6e 73 |this rou|tine ins|
|000011e0| 69 64 65 20 61 20 49 43 | 42 65 67 69 6e 2f 45 6e |ide a IC|Begin/En|
|000011f0| 64 20 70 61 69 72 2e 0d | 20 20 20 2a 20 52 65 71 |d pair..| * Req|
|00001200| 75 65 73 74 73 20 74 68 | 65 20 75 73 65 72 20 74 |uests th|e user t|
|00001210| 6f 20 63 72 65 61 74 65 | 20 61 20 6e 65 77 20 63 |o create| a new c|
|00001220| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 2c 20 74 79 |onfigura|tion, ty|
|00001230| 70 69 63 61 6c 6c 79 20 | 75 73 69 6e 67 20 73 6f |pically |using so|
|00001240| 6d 65 0d 20 20 20 2a 20 | 73 6f 72 74 20 6f 66 20 |me. * |sort of |
|00001250| 6d 6f 64 61 6c 20 64 69 | 61 6c 6f 67 2e 20 49 66 |modal di|alog. If|
|00001260| 20 74 68 65 20 75 73 65 | 72 20 63 61 6e 63 65 6c | the use|r cancel|
|00001270| 73 20 74 68 65 20 64 69 | 61 6c 6f 67 20 74 68 65 |s the di|alog the|
|00001280| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 0d 20 | configu|ration. |
|00001290| 20 20 2a 20 73 74 61 74 | 65 20 77 69 6c 6c 20 62 | * stat|e will b|
|000012a0| 65 20 75 6e 61 66 66 65 | 63 74 65 64 2e 0d 20 20 |e unaffe|cted.. |
|000012b0| 20 2a 2f 0d 0d 70 61 73 | 63 61 6c 20 49 43 45 72 | */..pas|cal ICEr|
|000012c0| 72 6f 72 20 49 43 47 65 | 74 43 6f 6e 66 69 67 4e |ror ICGe|tConfigN|
|000012d0| 61 6d 65 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |ame(ICIn|stance i|
|000012e0| 6e 73 74 2c 20 42 6f 6f | 6c 65 61 6e 20 6c 6f 6e |nst, Boo|lean lon|
|000012f0| 67 6e 61 6d 65 2c 20 53 | 74 72 32 35 35 20 6e 61 |gname, S|tr255 na|
|00001300| 6d 65 29 3b 0d 20 20 2f | 2a 20 52 65 71 75 69 72 |me);. /|* Requir|
|00001310| 65 73 20 49 43 20 31 2e | 32 2e 0d 20 20 20 2a 20 |es IC 1.|2.. * |
|00001320| 59 6f 75 20 6d 75 73 74 | 20 73 70 65 63 69 66 79 |You must| specify|
|00001330| 20 61 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e | a confi|guration|
|00001340| 20 62 65 66 6f 72 65 20 | 63 61 6c 6c 69 6e 67 20 | before |calling |
|00001350| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 2e 0d 20 20 |this rou|tine.. |
|00001360| 20 2a 20 52 65 74 75 72 | 6e 73 20 61 20 73 74 72 | * Retur|ns a str|
|00001370| 69 6e 67 20 74 68 61 74 | 20 64 65 73 63 72 69 62 |ing that| describ|
|00001380| 65 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 63 |es the c|urrent c|
|00001390| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 61 74 20 |onfigura|tion at |
|000013a0| 61 20 75 73 65 72 0d 20 | 20 20 2a 20 6c 65 76 65 |a user. | * leve|
|000013b0| 6c 2e 20 53 65 74 20 6c | 6f 6e 67 6e 61 6d 65 20 |l. Set l|ongname |
|000013c0| 74 6f 20 74 72 75 65 20 | 69 66 20 79 6f 75 20 77 |to true |if you w|
|000013d0| 61 6e 74 20 61 20 6c 6f | 6e 67 20 6e 61 6d 65 2c |ant a lo|ng name,|
|000013e0| 20 75 70 20 74 6f 20 32 | 35 35 0d 20 20 20 2a 20 | up to 2|55. * |
|000013f0| 63 68 61 72 61 63 74 65 | 72 73 2c 20 6f 72 20 66 |characte|rs, or f|
|00001400| 61 6c 73 65 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |alse if |you want|
|00001410| 20 61 20 73 68 6f 72 74 | 20 6e 61 6d 65 2c 20 74 | a short| name, t|
|00001420| 79 70 69 63 61 6c 6c 79 | 20 61 62 6f 75 74 20 33 |ypically| about 3|
|00001430| 32 0d 20 20 20 2a 20 63 | 68 61 72 61 63 74 65 72 |2. * c|haracter|
|00001440| 73 2e 0d 20 20 20 2a 20 | 54 68 65 20 72 65 74 75 |s.. * |The retu|
|00001450| 72 6e 65 64 20 73 74 72 | 69 6e 67 20 69 73 20 66 |rned str|ing is f|
|00001460| 6f 72 20 75 73 65 72 20 | 64 69 73 70 6c 61 79 20 |or user |display |
|00001470| 6f 6e 6c 79 2e 20 49 66 | 20 79 6f 75 20 72 65 6c |only. If| you rel|
|00001480| 79 20 6f 6e 20 74 68 65 | 0d 20 20 20 2a 20 65 78 |y on the|. * ex|
|00001490| 61 63 74 20 66 6f 72 6d | 61 74 20 6f 66 20 69 74 |act form|at of it|
|000014a0| 2c 20 79 6f 75 20 77 69 | 6c 6c 20 63 6f 6e 66 6c |, you wi|ll confl|
|000014b0| 69 63 74 20 77 69 74 68 | 20 61 6e 79 20 66 75 74 |ict with| any fut|
|000014c0| 75 72 65 20 49 43 0d 20 | 20 20 2a 20 69 6d 70 6c |ure IC. | * impl|
|000014d0| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 74 68 61 74 20 |ementati|on that |
|000014e0| 64 6f 65 73 6e 27 74 20 | 75 73 65 20 65 78 70 6c |doesn't |use expl|
|000014f0| 69 63 69 74 20 70 72 65 | 66 65 72 65 6e 63 65 20 |icit pre|ference |
|00001500| 66 69 6c 65 73 2e 0d 20 | 20 20 2a 2f 0d 0d 70 61 |files.. | */..pa|
|00001510| 73 63 61 6c 20 49 43 45 | 72 72 6f 72 20 49 43 47 |scal ICE|rror ICG|
|00001520| 65 74 43 6f 6e 66 69 67 | 52 65 66 65 72 65 6e 63 |etConfig|Referenc|
|00001530| 65 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |e(ICInst|ance ins|
|00001540| 74 2c 20 49 43 43 6f 6e | 66 69 67 52 65 66 48 61 |t, ICCon|figRefHa|
|00001550| 6e 64 6c 65 20 72 65 66 | 29 3b 0d 20 20 2f 2a 20 |ndle ref|);. /* |
|00001560| 52 65 71 75 69 72 65 73 | 20 49 43 20 31 2e 32 2e |Requires| IC 1.2.|
|00001570| 0d 20 20 20 2a 20 59 6f | 75 20 6d 75 73 74 20 73 |. * Yo|u must s|
|00001580| 70 65 63 69 66 79 20 61 | 20 63 6f 6e 66 69 67 75 |pecify a| configu|
|00001590| 72 61 74 69 6f 6e 20 62 | 65 66 6f 72 65 20 63 61 |ration b|efore ca|
|000015a0| 6c 6c 69 6e 67 20 74 68 | 69 73 20 72 6f 75 74 69 |lling th|is routi|
|000015b0| 6e 65 2e 0d 20 20 20 2a | 20 52 65 74 75 72 6e 73 |ne.. *| Returns|
|000015c0| 20 61 20 73 65 6c 66 2d | 63 6f 6e 74 61 69 6e 65 | a self-|containe|
|000015d0| 64 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 74 |d refere|nce to t|
|000015e0| 68 65 20 69 6e 73 74 61 | 6e 63 65 27 73 20 63 75 |he insta|nce's cu|
|000015f0| 72 72 65 6e 74 0d 20 20 | 20 2a 20 63 6f 6e 66 69 |rrent. | * confi|
|00001600| 67 75 72 61 74 69 6f 6e | 2e 0d 20 20 20 2a 20 72 |guration|.. * r|
|00001610| 65 66 20 6d 75 73 74 20 | 62 65 20 61 20 76 61 6c |ef must |be a val|
|00001620| 69 64 20 6e 6f 6e 2d 6e | 69 6c 20 68 61 6e 64 6c |id non-n|il handl|
|00001630| 65 20 61 6e 64 20 69 74 | 20 77 69 6c 6c 20 62 65 |e and it| will be|
|00001640| 20 72 65 73 69 7a 65 64 | 20 74 6f 20 66 69 74 20 | resized| to fit |
|00001650| 74 68 65 0d 20 20 20 2a | 20 72 65 73 75 6c 74 69 |the. *| resulti|
|00001660| 6e 67 20 64 61 74 61 2e | 0d 20 20 20 2a 2f 0d 0d |ng data.|. */..|
|00001670| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00001680| 43 53 65 74 43 6f 6e 66 | 69 67 52 65 66 65 72 65 |CSetConf|igRefere|
|00001690| 6e 63 65 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |nce(ICIn|stance i|
|000016a0| 6e 73 74 2c 20 49 43 43 | 6f 6e 66 69 67 52 65 66 |nst, ICC|onfigRef|
|000016b0| 48 61 6e 64 6c 65 20 72 | 65 66 2c 20 6c 6f 6e 67 |Handle r|ef, long|
|000016c0| 20 66 6c 61 67 73 29 3b | 0d 20 20 2f 2a 20 52 65 | flags);|. /* Re|
|000016d0| 71 75 69 72 65 73 20 49 | 43 20 31 2e 32 2e 0d 20 |quires I|C 1.2.. |
|000016e0| 20 20 2a 20 49 74 20 69 | 73 20 69 6c 6c 65 67 61 | * It i|s illega|
|000016f0| 6c 20 74 6f 20 63 61 6c | 6c 20 74 68 69 73 20 72 |l to cal|l this r|
|00001700| 6f 75 74 69 6e 65 20 69 | 6e 73 69 64 65 20 61 20 |outine i|nside a |
|00001710| 49 43 42 65 67 69 6e 2f | 45 6e 64 20 70 61 69 72 |ICBegin/|End pair|
|00001720| 2e 0d 20 20 20 2a 20 52 | 65 63 6f 6e 66 69 67 75 |.. * R|econfigu|
|00001730| 72 65 73 20 74 68 65 20 | 69 6e 73 74 61 6e 63 65 |res the |instance|
|00001740| 20 75 73 69 6e 67 20 61 | 20 63 6f 6e 66 69 67 75 | using a| configu|
|00001750| 72 61 74 69 6f 6e 20 72 | 65 66 65 72 65 6e 63 65 |ration r|eference|
|00001760| 20 74 68 61 74 20 77 61 | 73 0d 20 20 20 2a 20 67 | that wa|s. * g|
|00001770| 6f 74 20 75 73 69 6e 67 | 20 49 43 47 65 74 43 6f |ot using| ICGetCo|
|00001780| 6e 66 69 67 52 65 66 65 | 72 65 6e 63 65 20 72 65 |nfigRefe|rence re|
|00001790| 66 65 72 65 6e 63 65 2e | 20 53 65 74 20 74 68 65 |ference.| Set the|
|000017a0| 0d 20 20 20 2a 20 69 63 | 4e 6f 55 73 65 72 49 6e |. * ic|NoUserIn|
|000017b0| 74 65 72 61 63 74 69 6f | 6e 5f 62 69 74 20 69 6e |teractio|n_bit in|
|000017c0| 20 66 6c 61 67 73 20 69 | 66 20 79 6f 75 20 72 65 | flags i|f you re|
|000017d0| 71 75 69 72 65 20 74 68 | 61 74 20 74 68 69 73 20 |quire th|at this |
|000017e0| 72 6f 75 74 69 6e 65 0d | 20 20 20 2a 20 6e 6f 74 |routine.| * not|
|000017f0| 20 70 72 65 73 65 6e 74 | 20 61 20 6d 6f 64 61 6c | present| a modal|
|00001800| 20 64 69 61 6c 6f 67 2e | 20 4f 74 68 65 72 20 66 | dialog.| Other f|
|00001810| 6c 61 67 20 62 69 74 73 | 20 61 72 65 20 72 65 73 |lag bits| are res|
|00001820| 65 72 76 65 64 20 61 6e | 64 20 73 68 6f 75 6c 64 |erved an|d should|
|00001830| 0d 20 20 20 2a 20 62 65 | 20 73 65 74 20 74 6f 20 |. * be| set to |
|00001840| 7a 65 72 6f 2e 0d 20 20 | 20 2a 20 72 65 66 20 6d |zero.. | * ref m|
|00001850| 75 73 74 20 6e 6f 74 20 | 62 65 20 6e 69 6c 2e 0d |ust not |be nil..|
|00001860| 20 20 20 2a 2f 0d 0d 70 | 61 73 63 61 6c 20 49 43 | */..p|ascal IC|
|00001870| 45 72 72 6f 72 20 49 43 | 53 70 65 63 69 66 79 43 |Error IC|SpecifyC|
|00001880| 6f 6e 66 69 67 46 69 6c | 65 28 49 43 49 6e 73 74 |onfigFil|e(ICInst|
|00001890| 61 6e 63 65 20 69 6e 73 | 74 2c 20 46 53 53 70 65 |ance ins|t, FSSpe|
|000018a0| 63 20 2a 63 6f 6e 66 69 | 67 29 3b 0d 20 20 2f 2a |c *confi|g);. /*|
|000018b0| 20 49 74 20 69 73 20 69 | 6c 6c 65 67 61 6c 20 74 | It is i|llegal t|
|000018c0| 6f 20 63 61 6c 6c 20 74 | 68 69 73 20 72 6f 75 74 |o call t|his rout|
|000018d0| 69 6e 65 20 69 6e 73 69 | 64 65 20 61 20 49 43 42 |ine insi|de a ICB|
|000018e0| 65 67 69 6e 2f 45 6e 64 | 20 70 61 69 72 2e 0d 20 |egin/End| pair.. |
|000018f0| 20 20 2a 20 46 6f 72 20 | 75 73 65 20 6f 6e 6c 79 | * For |use only|
|00001900| 20 62 79 20 74 68 65 20 | 49 43 20 61 70 70 6c 69 | by the |IC appli|
|00001910| 63 61 74 69 6f 6e 2e 0d | 20 20 20 2a 20 49 66 20 |cation..| * If |
|00001920| 79 6f 75 20 63 61 6c 6c | 20 74 68 69 73 20 72 6f |you call| this ro|
|00001930| 75 74 69 6e 65 20 79 6f | 75 72 73 65 6c 66 2c 20 |utine yo|urself, |
|00001940| 79 6f 75 20 77 69 6c 6c | 20 63 6f 6e 66 6c 69 63 |you will| conflic|
|00001950| 74 20 77 69 74 68 20 61 | 6e 79 0d 20 20 20 2a 20 |t with a|ny. * |
|00001960| 66 75 74 75 72 65 20 49 | 43 20 69 6d 70 6c 65 6d |future I|C implem|
|00001970| 65 6e 74 61 74 69 6f 6e | 20 74 68 61 74 20 64 6f |entation| that do|
|00001980| 65 73 6e 27 74 20 75 73 | 65 20 65 78 70 6c 69 63 |esn't us|e explic|
|00001990| 69 74 20 70 72 65 66 65 | 72 65 6e 63 65 20 66 69 |it prefe|rence fi|
|000019a0| 6c 65 73 2e 0d 20 20 20 | 2a 2f 0d 0d 2f 2a 20 2a |les.. |*/../* *|
|000019b0| 2a 2a 2a 2a 20 47 65 74 | 74 69 6e 67 20 49 6e 66 |**** Get|ting Inf|
|000019c0| 6f 72 6d 61 74 69 6f 6e | 20 2a 2a 2a 2a 2a 20 2a |ormation| ***** *|
|000019d0| 2f 0d 0d 70 61 73 63 61 | 6c 20 49 43 45 72 72 6f |/..pasca|l ICErro|
|000019e0| 72 20 49 43 47 65 74 53 | 65 65 64 28 49 43 49 6e |r ICGetS|eed(ICIn|
|000019f0| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 6c 6f 6e |stance i|nst, lon|
|00001a00| 67 20 2a 73 65 65 64 29 | 3b 0d 20 20 2f 2a 20 59 |g *seed)|;. /* Y|
|00001a10| 6f 75 20 64 6f 20 6e 6f | 74 20 68 61 76 65 20 74 |ou do no|t have t|
|00001a20| 6f 20 73 70 65 63 69 66 | 79 20 61 20 63 6f 6e 66 |o specif|y a conf|
|00001a30| 69 67 75 72 61 74 69 6f | 6e 20 62 65 66 6f 72 65 |iguratio|n before|
|00001a40| 20 63 61 6c 6c 69 6e 67 | 20 74 68 69 73 20 72 6f | calling| this ro|
|00001a50| 75 74 69 6e 65 2e 0d 20 | 20 20 2a 20 59 6f 75 20 |utine.. | * You |
|00001a60| 64 6f 20 6e 6f 74 20 68 | 61 76 65 20 74 6f 20 62 |do not h|ave to b|
|00001a70| 65 20 69 6e 73 69 64 65 | 20 61 6e 20 49 43 42 65 |e inside| an ICBe|
|00001a80| 67 69 6e 2f 45 6e 64 20 | 70 61 69 72 20 74 6f 20 |gin/End |pair to |
|00001a90| 63 61 6c 6c 20 74 68 69 | 73 20 72 6f 75 74 69 6e |call thi|s routin|
|00001aa0| 65 2e 0d 20 20 20 2a 20 | 52 65 74 75 72 6e 73 20 |e.. * |Returns |
|00001ab0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 65 65 64 |the curr|ent seed|
|00001ac0| 20 66 6f 72 20 74 68 65 | 20 49 43 20 70 72 65 66 | for the| IC pref|
|00001ad0| 73 20 64 61 74 61 62 61 | 73 65 2e 0d 20 20 20 2a |s databa|se.. *|
|00001ae0| 20 54 68 69 73 20 73 65 | 65 64 20 63 68 61 6e 67 | This se|ed chang|
|00001af0| 65 73 20 65 61 63 68 20 | 74 69 6d 65 20 61 20 6e |es each |time a n|
|00001b00| 6f 6e 2d 76 6f 6c 61 74 | 69 6c 65 20 70 72 65 66 |on-volat|ile pref|
|00001b10| 65 72 65 6e 63 65 20 69 | 73 20 63 68 61 6e 67 65 |erence i|s change|
|00001b20| 64 2e 0d 20 20 20 2a 20 | 59 6f 75 20 63 61 6e 20 |d.. * |You can |
|00001b30| 70 6f 6c 6c 20 74 68 69 | 73 20 74 6f 20 64 65 74 |poll thi|s to det|
|00001b40| 65 72 6d 69 6e 65 20 69 | 66 20 61 6e 79 20 63 61 |ermine i|f any ca|
|00001b50| 63 68 65 64 20 70 72 65 | 66 65 72 65 6e 63 65 73 |ched pre|ferences|
|00001b60| 20 63 68 61 6e 67 65 2e | 0d 20 20 20 2a 2f 0d 0d | change.|. */..|
|00001b70| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00001b80| 43 47 65 74 50 65 72 6d | 28 49 43 49 6e 73 74 61 |CGetPerm|(ICInsta|
|00001b90| 6e 63 65 20 69 6e 73 74 | 2c 20 49 43 50 65 72 6d |nce inst|, ICPerm|
|00001ba0| 20 2a 70 65 72 6d 29 3b | 0d 20 20 2f 2a 20 59 6f | *perm);|. /* Yo|
|00001bb0| 75 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 74 6f |u do not| have to|
|00001bc0| 20 73 70 65 63 69 66 79 | 20 61 20 63 6f 6e 66 69 | specify| a confi|
|00001bd0| 67 75 72 61 74 69 6f 6e | 20 62 65 66 6f 72 65 20 |guration| before |
|00001be0| 63 61 6c 6c 69 6e 67 20 | 74 68 69 73 20 72 6f 75 |calling |this rou|
|00001bf0| 74 69 6e 65 2e 0d 20 20 | 20 2a 20 52 65 74 75 72 |tine.. | * Retur|
|00001c00| 6e 73 20 74 68 65 20 61 | 63 63 65 73 73 20 70 65 |ns the a|ccess pe|
|00001c10| 72 6d 69 73 73 69 6f 6e | 73 20 63 75 72 72 65 6e |rmission|s curren|
|00001c20| 74 6c 79 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |tly asso|ciated w|
|00001c30| 69 74 68 20 74 68 69 73 | 20 69 6e 73 74 61 6e 63 |ith this| instanc|
|00001c40| 65 2e 0d 20 20 20 2a 20 | 57 68 69 6c 65 20 61 70 |e.. * |While ap|
|00001c50| 70 6c 69 63 61 74 69 6f | 6e 73 20 6e 6f 72 6d 61 |plicatio|ns norma|
|00001c60| 6c 6c 79 20 6b 6e 6f 77 | 20 77 68 61 74 20 70 65 |lly know| what pe|
|00001c70| 72 6d 69 73 73 69 6f 6e | 73 20 74 68 65 79 20 68 |rmission|s they h|
|00001c80| 61 76 65 2c 0d 20 20 20 | 2a 20 74 68 69 73 20 72 |ave,. |* this r|
|00001c90| 6f 75 74 69 6e 65 20 69 | 73 20 64 65 73 69 67 6e |outine i|s design|
|00001ca0| 65 64 20 66 6f 72 20 75 | 73 65 20 62 79 20 6f 76 |ed for u|se by ov|
|00001cb0| 65 72 72 69 64 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |erride c|omponent|
|00001cc0| 73 2e 0d 20 20 20 2a 2f | 0d 0d 70 61 73 63 61 6c |s.. */|..pascal|
|00001cd0| 20 49 43 45 72 72 6f 72 | 20 49 43 44 65 66 61 75 | ICError| ICDefau|
|00001ce0| 6c 74 46 69 6c 65 4e 61 | 6d 65 28 49 43 49 6e 73 |ltFileNa|me(ICIns|
|00001cf0| 74 61 6e 63 65 20 69 6e | 73 74 2c 20 53 74 72 36 |tance in|st, Str6|
|00001d00| 33 20 6e 61 6d 65 29 3b | 0d 20 20 2f 2a 20 59 6f |3 name);|. /* Yo|
|00001d10| 75 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 74 6f |u do not| have to|
|00001d20| 20 73 70 65 63 69 66 79 | 20 61 20 63 6f 6e 66 69 | specify| a confi|
|00001d30| 67 75 72 61 74 69 6f 6e | 20 62 65 66 6f 72 65 20 |guration| before |
|00001d40| 63 61 6c 6c 69 6e 67 20 | 74 68 69 73 20 72 6f 75 |calling |this rou|
|00001d50| 74 69 6e 65 2e 0d 20 20 | 20 2a 20 59 6f 75 20 64 |tine.. | * You d|
|00001d60| 6f 20 6e 6f 74 20 68 61 | 76 65 20 74 6f 20 62 65 |o not ha|ve to be|
|00001d70| 20 69 6e 73 69 64 65 20 | 61 6e 20 49 43 42 65 67 | inside |an ICBeg|
|00001d80| 69 6e 2f 45 6e 64 20 70 | 61 69 72 20 74 6f 20 63 |in/End p|air to c|
|00001d90| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|00001da0| 2e 0d 20 20 20 2a 20 52 | 65 74 75 72 6e 73 20 74 |.. * R|eturns t|
|00001db0| 68 65 20 64 65 66 61 75 | 6c 74 20 66 69 6c 65 20 |he defau|lt file |
|00001dc0| 6e 61 6d 65 20 66 6f 72 | 20 49 43 20 70 72 65 66 |name for| IC pref|
|00001dd0| 65 72 65 6e 63 65 20 66 | 69 6c 65 73 2e 0d 20 20 |erence f|iles.. |
|00001de0| 20 2a 20 41 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 | * Appli|cations |
|00001df0| 73 68 6f 75 6c 64 20 6e | 65 76 65 72 20 6e 65 65 |should n|ever nee|
|00001e00| 64 20 74 6f 20 63 61 6c | 6c 20 74 68 69 73 20 72 |d to cal|l this r|
|00001e10| 6f 75 74 69 6e 65 2e 0d | 20 20 20 2a 20 49 66 20 |outine..| * If |
|00001e20| 79 6f 75 20 72 65 6c 79 | 20 6f 6e 20 69 6e 66 6f |you rely| on info|
|00001e30| 72 6d 61 74 69 6f 6e 20 | 72 65 74 75 72 6e 65 64 |rmation |returned|
|00001e40| 20 62 79 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 | by this| routine|
|00001e50| 20 79 6f 75 72 73 65 6c | 66 2c 0d 20 20 20 2a 20 | yoursel|f,. * |
|00001e60| 79 6f 75 20 6d 61 79 20 | 63 6f 6e 66 6c 69 63 74 |you may |conflict|
|00001e70| 20 77 69 74 68 20 61 6e | 79 20 66 75 74 75 72 65 | with an|y future|
|00001e80| 20 49 43 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 | IC impl|ementati|
|00001e90| 6f 6e 20 74 68 61 74 20 | 64 6f 65 73 6e 27 74 20 |on that |doesn't |
|00001ea0| 75 73 65 0d 20 20 20 2a | 20 65 78 70 6c 69 63 69 |use. *| explici|
|00001eb0| 74 20 70 72 65 66 65 72 | 65 6e 63 65 20 66 69 6c |t prefer|ence fil|
|00001ec0| 65 73 2e 0d 20 20 20 2a | 20 54 68 65 20 63 6f 6d |es.. *| The com|
|00001ed0| 70 6f 6e 65 6e 74 20 63 | 61 6c 6c 73 20 74 68 69 |ponent c|alls thi|
|00001ee0| 73 20 72 6f 75 74 69 6e | 65 20 74 6f 20 73 65 74 |s routin|e to set|
|00001ef0| 20 75 70 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | up the |default |
|00001f00| 49 43 20 66 69 6c 65 20 | 6e 61 6d 65 2e 0d 20 20 |IC file |name.. |
|00001f10| 20 2a 20 54 68 69 73 20 | 61 6c 6c 6f 77 73 20 74 | * This |allows t|
|00001f20| 68 69 73 20 6f 70 65 72 | 61 74 69 6f 6e 20 74 6f |his oper|ation to|
|00001f30| 20 62 65 20 69 6e 74 65 | 72 63 65 70 74 65 64 20 | be inte|rcepted |
|00001f40| 62 79 20 61 20 63 6f 6d | 70 6f 6e 65 6e 74 20 74 |by a com|ponent t|
|00001f50| 68 61 74 20 68 61 73 0d | 20 20 20 2a 20 63 61 70 |hat has.| * cap|
|00001f60| 74 75 72 65 64 20 75 73 | 2e 20 49 74 20 63 75 72 |tured us|. It cur|
|00001f70| 72 65 6e 74 6c 79 20 67 | 65 74 73 20 69 74 20 66 |rently g|ets it f|
|00001f80| 72 6f 6d 20 74 68 65 20 | 63 6f 6d 70 6f 6e 65 6e |rom the |componen|
|00001f90| 74 20 72 65 73 6f 75 72 | 63 65 20 66 69 6c 65 2e |t resour|ce file.|
|00001fa0| 0d 20 20 20 2a 20 54 68 | 65 20 67 6c 75 65 20 76 |. * Th|e glue v|
|00001fb0| 65 72 73 69 6f 6e 20 69 | 73 20 68 61 72 64 77 69 |ersion i|s hardwi|
|00001fc0| 72 65 64 20 74 6f 20 22 | 49 6e 74 65 72 6e 65 74 |red to "|Internet|
|00001fd0| 20 50 72 65 66 65 72 65 | 6e 63 65 73 22 2e 0d 20 | Prefere|nces".. |
|00001fe0| 20 20 2a 2f 0d 0d 70 61 | 73 63 61 6c 20 49 43 45 | */..pa|scal ICE|
|00001ff0| 72 72 6f 72 20 49 43 47 | 65 74 43 6f 6d 70 6f 6e |rror ICG|etCompon|
|00002000| 65 6e 74 49 6e 73 74 61 | 6e 63 65 28 49 43 49 6e |entInsta|nce(ICIn|
|00002010| 73 74 61 6e 63 65 20 69 | 6e 73 74 2c 20 50 74 72 |stance i|nst, Ptr|
|00002020| 20 2a 63 6f 6d 70 6f 6e | 65 6e 74 5f 69 6e 73 74 | *compon|ent_inst|
|00002030| 29 3b 0d 20 20 2f 2a 20 | 52 65 71 75 69 72 65 73 |);. /* |Requires|
|00002040| 20 49 43 20 31 2e 32 2e | 0d 20 20 20 2a 20 59 6f | IC 1.2.|. * Yo|
|00002050| 75 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 74 6f |u do not| have to|
|00002060| 20 73 70 65 63 69 66 79 | 20 61 20 63 6f 6e 66 69 | specify| a confi|
|00002070| 67 75 72 61 74 69 6f 6e | 20 62 65 66 6f 72 65 20 |guration| before |
|00002080| 63 61 6c 6c 69 6e 67 20 | 74 68 69 73 20 72 6f 75 |calling |this rou|
|00002090| 74 69 6e 65 2e 0d 20 20 | 20 2a 20 59 6f 75 20 64 |tine.. | * You d|
|000020a0| 6f 20 6e 6f 74 20 68 61 | 76 65 20 74 6f 20 62 65 |o not ha|ve to be|
|000020b0| 20 69 6e 73 69 64 65 20 | 61 6e 20 49 43 42 65 67 | inside |an ICBeg|
|000020c0| 69 6e 2f 45 6e 64 20 70 | 61 69 72 20 74 6f 20 63 |in/End p|air to c|
|000020d0| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|000020e0| 2e 0d 20 20 20 2a 20 52 | 65 74 75 72 6e 73 20 6e |.. * R|eturns n|
|000020f0| 6f 45 72 72 20 61 6e 64 | 20 74 68 65 20 63 6f 6e |oErr and| the con|
|00002100| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 74 68 65 20 49 |nection |to the I|
|00002110| 43 20 63 6f 6d 70 6f 6e | 65 6e 74 2c 0d 20 20 20 |C compon|ent,. |
|00002120| 2a 20 69 66 20 77 65 27 | 72 65 20 75 73 69 6e 67 |* if we'|re using|
|00002130| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 2e 0d | the com|ponent..|
|00002140| 20 20 20 2a 20 52 65 74 | 75 72 6e 73 20 62 61 64 | * Ret|urns bad|
|00002150| 43 6f 6d 70 6f 6e 65 6e | 49 6e 73 74 61 6e 63 65 |Componen|Instance|
|00002160| 20 61 6e 64 20 6e 69 6c | 20 69 66 20 77 65 27 72 | and nil| if we'r|
|00002170| 65 20 6f 70 65 72 61 74 | 69 6e 67 20 77 69 74 68 |e operat|ing with|
|00002180| 20 67 6c 75 65 2e 0d 20 | 20 20 2a 20 54 68 65 20 | glue.. | * The |
|00002190| 63 6f 6d 70 6f 6e 65 6e | 74 5f 69 6e 73 74 20 70 |componen|t_inst p|
|000021a0| 61 72 61 6d 65 74 65 72 | 20 69 73 20 61 20 75 6e |arameter| is a un|
|000021b0| 69 76 65 72 73 61 6c 20 | 70 6f 69 6e 74 65 72 20 |iversal |pointer |
|000021c0| 74 6f 20 61 76 6f 69 64 | 0d 20 20 20 2a 20 75 73 |to avoid|. * us|
|000021d0| 20 68 61 76 69 6e 67 20 | 74 6f 20 69 6e 63 6c 75 | having |to inclu|
|000021e0| 64 65 20 43 6f 6d 70 6f | 6e 65 6e 74 2e 5b 70 68 |de Compo|nent.[ph|
|000021f0| 5d 20 28 77 68 69 63 68 | 20 69 73 20 6e 6f 74 20 |] (which| is not |
|00002200| 61 76 61 69 6c 61 62 6c | 65 20 75 6e 64 65 72 0d |availabl|e under.|
|00002210| 20 20 20 2a 20 73 6f 6d | 65 20 64 65 76 65 6c 6f | * som|e develo|
|00002220| 70 6d 65 6e 74 20 65 6e | 76 69 72 6f 6e 6d 65 6e |pment en|vironmen|
|00002230| 74 73 29 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |ts) in o|rder to |
|00002240| 75 73 65 20 49 43 2e 0d | 20 20 20 2a 2f 0d 0d 2f |use IC..| */../|
|00002250| 2a 20 2a 2a 2a 2a 2a 20 | 52 65 61 64 69 6e 67 20 |* ***** |Reading |
|00002260| 61 6e 64 20 57 72 69 74 | 69 6e 67 20 50 72 65 66 |and Writ|ing Pref|
|00002270| 65 72 65 6e 63 65 73 20 | 2a 2a 2a 2a 2a 20 2a 2f |erences |***** */|
|00002280| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00002290| 20 49 43 42 65 67 69 6e | 28 49 43 49 6e 73 74 61 | ICBegin|(ICInsta|
|000022a0| 6e 63 65 20 69 6e 73 74 | 2c 20 49 43 50 65 72 6d |nce inst|, ICPerm|
|000022b0| 20 70 65 72 6d 29 3b 0d | 20 20 2f 2a 20 59 6f 75 | perm);.| /* You|
|000022c0| 20 6d 75 73 74 20 73 70 | 65 63 69 66 79 20 61 20 | must sp|ecify a |
|000022d0| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 62 65 |configur|ation be|
|000022e0| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 74 68 69 |fore cal|ling thi|
|000022f0| 73 20 72 6f 75 74 69 6e | 65 2e 0d 20 20 20 2a 20 |s routin|e.. * |
|00002300| 49 74 20 69 73 20 69 6c | 6c 65 67 61 6c 20 74 6f |It is il|legal to|
|00002310| 20 63 61 6c 6c 20 74 68 | 69 73 20 72 6f 75 74 69 | call th|is routi|
|00002320| 6e 65 20 69 6e 73 69 64 | 65 20 61 20 49 43 42 65 |ne insid|e a ICBe|
|00002330| 67 69 6e 2f 45 6e 64 20 | 70 61 69 72 2e 0d 20 20 |gin/End |pair.. |
|00002340| 20 2a 20 53 74 61 72 74 | 69 6e 67 20 72 65 61 64 | * Start|ing read|
|00002350| 69 6e 67 20 6f 72 20 77 | 72 69 74 69 6e 67 20 6d |ing or w|riting m|
|00002360| 75 6c 74 69 70 6c 65 20 | 70 72 65 66 65 72 65 6e |ultiple |preferen|
|00002370| 63 65 73 2e 0d 20 20 20 | 2a 20 41 20 63 61 6c 6c |ces.. |* A call|
|00002380| 20 74 6f 20 74 68 69 73 | 20 6d 75 73 74 20 62 65 | to this| must be|
|00002390| 20 62 61 6c 61 6e 63 65 | 64 20 62 79 20 61 20 63 | balance|d by a c|
|000023a0| 61 6c 6c 20 74 6f 20 49 | 43 45 6e 64 2e 0d 20 20 |all to I|CEnd.. |
|000023b0| 20 2a 20 44 6f 20 6e 6f | 74 20 63 61 6c 6c 20 57 | * Do no|t call W|
|000023c0| 61 69 74 4e 65 78 74 45 | 76 65 6e 74 20 62 65 74 |aitNextE|vent bet|
|000023d0| 77 65 65 6e 20 74 68 65 | 73 65 20 63 61 6c 6c 73 |ween the|se calls|
|000023e0| 2e 0d 20 20 20 2a 20 54 | 68 65 20 70 65 72 6d 20 |.. * T|he perm |
|000023f0| 73 70 65 63 69 66 69 65 | 73 20 77 68 65 74 68 65 |specifie|s whethe|
|00002400| 72 20 79 6f 75 20 69 6e | 74 65 6e 64 20 74 6f 20 |r you in|tend to |
|00002410| 72 65 61 64 20 6f 72 20 | 72 65 61 64 2f 77 72 69 |read or |read/wri|
|00002420| 74 65 2e 0d 20 20 20 2a | 20 4f 6e 6c 79 20 6f 6e |te.. *| Only on|
|00002430| 65 20 77 72 69 74 65 72 | 20 69 73 20 61 6c 6c 6f |e writer| is allo|
|00002440| 77 65 64 20 70 65 72 20 | 69 6e 73 74 61 6e 63 65 |wed per |instance|
|00002450| 2e 0d 20 20 20 2a 20 4e | 6f 74 65 20 74 68 61 74 |.. * N|ote that|
|00002460| 20 74 68 69 73 20 6d 61 | 79 20 6f 70 65 6e 20 72 | this ma|y open r|
|00002470| 65 73 6f 75 72 63 65 20 | 66 69 6c 65 73 20 74 68 |esource |files th|
|00002480| 61 74 20 61 72 65 20 6e | 6f 74 20 63 6c 6f 73 65 |at are n|ot close|
|00002490| 64 0d 20 20 20 2a 20 75 | 6e 74 69 6c 20 79 6f 75 |d. * u|ntil you|
|000024a0| 20 63 61 6c 6c 20 49 43 | 45 6e 64 2e 0d 20 20 20 | call IC|End.. |
|000024b0| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|000024c0| 6f 72 20 49 43 47 65 74 | 50 72 65 66 28 49 43 49 |or ICGet|Pref(ICI|
|000024d0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 2c 20 43 6f |nstance |inst, Co|
|000024e0| 6e 73 74 53 74 72 32 35 | 35 50 61 72 61 6d 20 6b |nstStr25|5Param k|
|000024f0| 65 79 2c 20 49 43 41 74 | 74 72 20 2a 61 74 74 72 |ey, ICAt|tr *attr|
|00002500| 2c 20 50 74 72 20 62 75 | 66 2c 20 6c 6f 6e 67 20 |, Ptr bu|f, long |
|00002510| 2a 73 69 7a 65 29 3b 0d | 20 20 2f 2a 20 59 6f 75 |*size);.| /* You|
|00002520| 20 6d 75 73 74 20 73 70 | 65 63 69 66 79 20 61 20 | must sp|ecify a |
|00002530| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 62 65 |configur|ation be|
|00002540| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 74 68 69 |fore cal|ling thi|
|00002550| 73 20 72 6f 75 74 69 6e | 65 2e 0d 20 20 20 2a 20 |s routin|e.. * |
|00002560| 49 66 20 79 6f 75 20 61 | 72 65 20 67 65 74 74 69 |If you a|re getti|
|00002570| 6e 67 20 6f 72 20 73 65 | 74 74 69 6e 67 20 6d 75 |ng or se|tting mu|
|00002580| 6c 74 69 70 6c 65 20 70 | 72 65 66 65 72 65 6e 63 |ltiple p|referenc|
|00002590| 65 73 2c 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 70 |es, you |should p|
|000025a0| 6c 61 63 65 0d 20 20 20 | 2a 20 74 68 65 73 65 20 |lace. |* these |
|000025b0| 63 61 6c 6c 73 20 77 69 | 74 68 69 6e 20 61 6e 20 |calls wi|thin an |
|000025c0| 49 43 42 65 67 69 6e 2f | 49 43 45 6e 64 20 70 61 |ICBegin/|ICEnd pa|
|000025d0| 69 72 2e 0d 20 20 20 2a | 20 49 66 20 79 6f 75 20 |ir.. *| If you |
|000025e0| 63 61 6c 6c 20 74 68 69 | 73 20 72 6f 75 74 69 6e |call thi|s routin|
|000025f0| 65 20 6f 75 74 73 69 64 | 65 20 6f 66 20 73 75 63 |e outsid|e of suc|
|00002600| 68 20 61 20 70 61 69 72 | 2c 20 69 74 20 69 6d 70 |h a pair|, it imp|
|00002610| 6c 69 63 69 74 6c 79 0d | 20 20 20 2a 20 63 61 6c |licitly.| * cal|
|00002620| 6c 73 20 49 43 42 65 67 | 69 6e 28 69 6e 73 74 2c |ls ICBeg|in(inst,|
|00002630| 20 69 63 52 65 61 64 4f | 6e 6c 79 50 65 72 6d 29 | icReadO|nlyPerm)|
|00002640| 2e 0d 20 20 20 2a 20 52 | 65 61 64 73 20 74 68 65 |.. * R|eads the|
|00002650| 20 70 72 65 66 65 72 65 | 6e 63 65 20 73 70 65 63 | prefere|nce spec|
|00002660| 69 66 69 65 64 20 62 79 | 20 6b 65 79 20 66 72 6f |ified by| key fro|
|00002670| 6d 20 74 68 65 20 49 43 | 20 64 61 74 61 62 61 73 |m the IC| databas|
|00002680| 65 20 74 6f 20 74 68 65 | 0d 20 20 20 2a 20 62 75 |e to the|. * bu|
|00002690| 66 66 65 72 20 70 6f 69 | 6e 74 65 64 20 74 6f 20 |ffer poi|nted to |
|000026a0| 62 79 20 62 75 66 20 61 | 6e 64 20 73 69 7a 65 2e |by buf a|nd size.|
|000026b0| 0d 20 20 20 2a 20 6b 65 | 79 20 6d 75 73 74 20 6e |. * ke|y must n|
|000026c0| 6f 74 20 62 65 20 74 68 | 65 20 65 6d 70 74 79 20 |ot be th|e empty |
|000026d0| 73 74 72 69 6e 67 2e 0d | 20 20 20 2a 20 49 66 20 |string..| * If |
|000026e0| 62 75 66 20 69 73 20 6e | 69 6c 20 74 68 65 6e 20 |buf is n|il then |
|000026f0| 6e 6f 20 64 61 74 61 20 | 69 73 20 72 65 74 75 72 |no data |is retur|
|00002700| 6e 65 64 2e 0d 20 20 20 | 2a 20 73 69 7a 65 20 6d |ned.. |* size m|
|00002710| 75 73 74 20 62 65 20 6e | 6f 6e 2d 6e 65 67 61 74 |ust be n|on-negat|
|00002720| 69 76 65 2e 0d 20 20 20 | 2a 20 61 74 74 72 20 61 |ive.. |* attr a|
|00002730| 6e 64 20 73 69 7a 65 20 | 61 72 65 20 61 6c 77 61 |nd size |are alwa|
|00002740| 79 73 20 73 65 74 20 6f | 6e 20 72 65 74 75 72 6e |ys set o|n return|
|00002750| 2e 20 4f 6e 20 65 72 72 | 6f 72 73 20 28 65 78 63 |. On err|ors (exc|
|00002760| 65 70 74 20 69 63 54 72 | 75 6e 63 61 74 65 64 45 |ept icTr|uncatedE|
|00002770| 72 72 29 0d 20 20 20 2a | 20 61 74 74 72 20 69 73 |rr). *| attr is|
|00002780| 20 73 65 74 20 74 6f 20 | 49 43 61 74 74 72 5f 6e | set to |ICattr_n|
|00002790| 6f 5f 63 68 61 6e 67 65 | 20 61 6e 64 20 73 69 7a |o_change| and siz|
|000027a0| 65 20 69 73 20 73 65 74 | 20 74 6f 20 30 2e 0d 20 |e is set| to 0.. |
|000027b0| 20 20 2a 20 73 69 7a 65 | 20 69 73 20 74 68 65 20 | * size| is the |
|000027c0| 61 63 74 75 61 6c 20 73 | 69 7a 65 20 6f 66 20 74 |actual s|ize of t|
|000027d0| 68 65 20 64 61 74 61 2e | 0d 20 20 20 2a 20 61 74 |he data.|. * at|
|000027e0| 74 72 20 69 73 20 73 65 | 74 20 74 6f 20 74 68 65 |tr is se|t to the|
|000027f0| 20 61 74 74 72 69 62 75 | 74 65 73 20 61 73 73 6f | attribu|tes asso|
|00002800| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00002810| 70 72 65 66 65 72 65 6e | 63 65 2e 0d 20 20 20 2a |preferen|ce.. *|
|00002820| 20 49 66 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 | If this| routine|
|00002830| 20 72 65 74 75 72 6e 73 | 20 69 63 54 72 75 6e 63 | returns| icTrunc|
|00002840| 61 74 65 64 45 72 72 20 | 74 68 65 6e 20 74 68 65 |atedErr |then the|
|00002850| 20 6f 74 68 65 72 20 72 | 65 74 75 72 6e 65 64 0d | other r|eturned.|
|00002860| 20 20 20 2a 20 76 61 6c | 75 65 73 20 61 72 65 20 | * val|ues are |
|00002870| 76 61 6c 69 64 20 65 78 | 63 65 70 74 20 74 68 61 |valid ex|cept tha|
|00002880| 74 20 6f 6e 6c 79 20 74 | 68 65 20 66 69 72 73 74 |t only t|he first|
|00002890| 20 73 69 7a 65 20 62 79 | 74 65 73 20 68 61 76 65 | size by|tes have|
|000028a0| 20 62 65 65 6e 0d 20 20 | 20 2a 20 72 65 74 75 72 | been. | * retur|
|000028b0| 6e 2e 20 73 69 7a 65 20 | 69 73 20 61 64 6a 75 73 |n. size |is adjus|
|000028c0| 74 65 64 20 74 6f 20 72 | 65 66 6c 65 63 74 20 74 |ted to r|eflect t|
|000028d0| 68 65 20 74 72 75 65 20 | 73 69 7a 65 20 6f 66 20 |he true |size of |
|000028e0| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 2e 0d |the pref|erence..|
|000028f0| 20 20 20 2a 20 52 65 74 | 75 72 6e 73 20 69 63 50 | * Ret|urns icP|
|00002900| 72 65 66 4e 6f 74 46 6f | 75 6e 64 20 69 66 20 74 |refNotFo|und if t|
|00002910| 68 65 72 65 20 69 73 20 | 6e 6f 20 70 72 65 66 65 |here is |no prefe|
|00002920| 72 65 6e 63 65 20 66 6f | 72 20 74 68 65 20 6b 65 |rence fo|r the ke|
|00002930| 79 2e 0d 20 20 20 2a 2f | 0d 0d 70 61 73 63 61 6c |y.. */|..pascal|
|00002940| 20 49 43 45 72 72 6f 72 | 20 49 43 53 65 74 50 72 | ICError| ICSetPr|
|00002950| 65 66 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |ef(ICIns|tance in|
|00002960| 73 74 2c 20 43 6f 6e 73 | 74 53 74 72 32 35 35 50 |st, Cons|tStr255P|
|00002970| 61 72 61 6d 20 6b 65 79 | 2c 20 49 43 41 74 74 72 |aram key|, ICAttr|
|00002980| 20 61 74 74 72 2c 20 50 | 74 72 20 62 75 66 2c 20 | attr, P|tr buf, |
|00002990| 6c 6f 6e 67 20 73 69 7a | 65 29 3b 0d 20 20 2f 2a |long siz|e);. /*|
|000029a0| 20 59 6f 75 20 6d 75 73 | 74 20 73 70 65 63 69 66 | You mus|t specif|
|000029b0| 79 20 61 20 63 6f 6e 66 | 69 67 75 72 61 74 69 6f |y a conf|iguratio|
|000029c0| 6e 20 62 65 66 6f 72 65 | 20 63 61 6c 6c 69 6e 67 |n before| calling|
|000029d0| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 2e 0d 20 | this ro|utine.. |
|000029e0| 20 20 2a 20 49 66 20 79 | 6f 75 20 61 72 65 20 67 | * If y|ou are g|
|000029f0| 65 74 74 69 6e 67 20 6f | 72 20 73 65 74 74 69 6e |etting o|r settin|
|00002a00| 67 20 6d 75 6c 74 69 70 | 6c 65 20 70 72 65 66 65 |g multip|le prefe|
|00002a10| 72 65 6e 63 65 73 2c 20 | 79 6f 75 20 73 68 6f 75 |rences, |you shou|
|00002a20| 6c 64 20 70 6c 61 63 65 | 0d 20 20 20 2a 20 74 68 |ld place|. * th|
|00002a30| 65 73 65 20 63 61 6c 6c | 73 20 77 69 74 68 69 6e |ese call|s within|
|00002a40| 20 61 6e 20 49 43 42 65 | 67 69 6e 2f 49 43 45 6e | an ICBe|gin/ICEn|
|00002a50| 64 20 70 61 69 72 2e 0d | 20 20 20 2a 20 49 66 20 |d pair..| * If |
|00002a60| 79 6f 75 20 63 61 6c 6c | 20 74 68 69 73 20 72 6f |you call| this ro|
|00002a70| 75 74 69 6e 65 20 6f 75 | 74 73 69 64 65 20 6f 66 |utine ou|tside of|
|00002a80| 20 73 75 63 68 20 61 20 | 70 61 69 72 2c 20 69 74 | such a |pair, it|
|00002a90| 20 69 6d 70 6c 69 63 69 | 74 6c 79 0d 20 20 20 2a | implici|tly. *|
|00002aa0| 20 63 61 6c 6c 73 20 49 | 43 42 65 67 69 6e 28 69 | calls I|CBegin(i|
|00002ab0| 6e 73 74 2c 20 69 63 52 | 65 61 64 57 72 69 74 65 |nst, icR|eadWrite|
|00002ac0| 50 65 72 6d 29 2e 0d 20 | 20 20 2a 20 53 65 74 73 |Perm).. | * Sets|
|00002ad0| 20 74 68 65 20 70 72 65 | 66 65 72 65 6e 63 65 20 | the pre|ference |
|00002ae0| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 6b 65 79 |specifie|d by key|
|00002af0| 20 66 72 6f 6d 20 74 68 | 65 20 49 43 20 64 61 74 | from th|e IC dat|
|00002b00| 61 62 61 73 65 20 74 6f | 20 74 68 65 0d 20 20 20 |abase to| the. |
|00002b10| 2a 20 76 61 6c 75 65 20 | 70 6f 69 6e 74 65 64 20 |* value |pointed |
|00002b20| 74 6f 20 62 79 20 62 75 | 66 20 61 6e 64 20 73 69 |to by bu|f and si|
|00002b30| 7a 65 2e 0d 20 20 20 2a | 20 6b 65 79 20 6d 75 73 |ze.. *| key mus|
|00002b40| 74 20 6e 6f 74 20 62 65 | 20 74 68 65 20 65 6d 70 |t not be| the emp|
|00002b50| 74 79 20 73 74 72 69 6e | 67 2e 0d 20 20 20 2a 20 |ty strin|g.. * |
|00002b60| 73 69 7a 65 20 6d 75 73 | 74 20 62 65 20 6e 6f 6e |size mus|t be non|
|00002b70| 2d 6e 65 67 61 74 69 76 | 65 2e 20 0d 20 20 20 2a |-negativ|e. . *|
|00002b80| 20 49 66 20 62 75 66 20 | 69 73 20 6e 69 6c 20 74 | If buf |is nil t|
|00002b90| 68 65 6e 20 74 68 65 20 | 70 72 65 66 65 72 65 6e |hen the |preferen|
|00002ba0| 63 65 20 76 61 6c 75 65 | 20 69 73 20 6e 6f 74 20 |ce value| is not |
|00002bb0| 73 65 74 20 61 6e 64 20 | 73 69 7a 65 20 69 73 20 |set and |size is |
|00002bc0| 69 67 6e 6f 72 65 64 2e | 0d 20 20 20 2a 20 49 66 |ignored.|. * If|
|00002bd0| 20 62 75 66 20 69 73 20 | 6e 6f 74 20 6e 69 6c 20 | buf is |not nil |
|00002be0| 74 68 65 6e 20 74 68 65 | 20 70 72 65 66 65 72 65 |then the| prefere|
|00002bf0| 6e 63 65 20 76 61 6c 75 | 65 20 69 73 20 73 65 74 |nce valu|e is set|
|00002c00| 20 74 6f 20 74 68 65 20 | 73 69 7a 65 0d 20 20 20 | to the |size. |
|00002c10| 2a 20 62 79 74 65 73 20 | 70 6f 69 6e 74 65 64 20 |* bytes |pointed |
|00002c20| 74 6f 20 62 79 20 62 75 | 66 2e 0d 20 20 20 2a 20 |to by bu|f.. * |
|00002c30| 49 66 20 61 74 74 72 20 | 69 73 20 49 43 61 74 74 |If attr |is ICatt|
|00002c40| 72 5f 6e 6f 5f 63 68 61 | 6e 67 65 20 74 68 65 6e |r_no_cha|nge then|
|00002c50| 20 74 68 65 20 70 72 65 | 66 65 72 65 6e 63 65 20 | the pre|ference |
|00002c60| 61 74 74 72 69 62 75 74 | 65 73 20 61 72 65 20 6e |attribut|es are n|
|00002c70| 6f 74 20 73 65 74 2e 0d | 20 20 20 2a 20 4f 74 68 |ot set..| * Oth|
|00002c80| 65 72 77 69 73 65 20 74 | 68 65 20 70 72 65 66 65 |erwise t|he prefe|
|00002c90| 72 65 6e 63 65 20 61 74 | 74 72 69 62 75 74 65 73 |rence at|tributes|
|00002ca0| 20 61 72 65 20 73 65 74 | 20 74 6f 20 61 74 74 72 | are set| to attr|
|00002cb0| 2e 0d 20 20 20 2a 20 52 | 65 74 75 72 6e 73 20 69 |.. * R|eturns i|
|00002cc0| 63 50 65 72 6d 45 72 72 | 20 69 66 20 74 68 65 20 |cPermErr| if the |
|00002cd0| 70 72 65 76 69 6f 75 73 | 20 49 43 42 65 67 69 6e |previous| ICBegin|
|00002ce0| 20 77 61 73 20 70 61 73 | 73 65 64 20 69 63 52 65 | was pas|sed icRe|
|00002cf0| 61 64 4f 6e 6c 79 50 65 | 72 6d 2e 0d 20 20 20 2a |adOnlyPe|rm.. *|
|00002d00| 20 52 65 74 75 72 6e 73 | 20 69 63 50 65 72 6d 45 | Returns| icPermE|
|00002d10| 72 72 20 69 66 20 63 75 | 72 72 65 6e 74 20 61 74 |rr if cu|rrent at|
|00002d20| 74 72 20 69 73 20 6c 6f | 63 6b 65 64 2c 20 6e 65 |tr is lo|cked, ne|
|00002d30| 77 20 61 74 74 72 20 69 | 73 20 6c 6f 63 6b 65 64 |w attr i|s locked|
|00002d40| 20 61 6e 64 20 62 75 66 | 20 3c 3e 20 6e 69 6c 2e | and buf| <> nil.|
|00002d50| 0d 20 20 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |. */..|pascal I|
|00002d60| 43 45 72 72 6f 72 20 49 | 43 46 69 6e 64 50 72 65 |CError I|CFindPre|
|00002d70| 66 48 61 6e 64 6c 65 28 | 49 43 49 6e 73 74 61 6e |fHandle(|ICInstan|
|00002d80| 63 65 20 69 6e 73 74 2c | 20 43 6f 6e 73 74 53 74 |ce inst,| ConstSt|
|00002d90| 72 32 35 35 50 61 72 61 | 6d 20 6b 65 79 2c 20 49 |r255Para|m key, I|
|00002da0| 43 41 74 74 72 20 2a 61 | 74 74 72 2c 20 48 61 6e |CAttr *a|ttr, Han|
|00002db0| 64 6c 65 20 70 72 65 66 | 68 29 3b 0d 20 20 2f 2a |dle pref|h);. /*|
|00002dc0| 20 52 65 71 75 69 72 65 | 73 20 49 43 20 31 2e 32 | Require|s IC 1.2|
|00002dd0| 2e 0d 20 20 20 2a 20 59 | 6f 75 20 6d 75 73 74 20 |.. * Y|ou must |
|00002de0| 73 70 65 63 69 66 79 20 | 61 20 63 6f 6e 66 69 67 |specify |a config|
|00002df0| 75 72 61 74 69 6f 6e 20 | 62 65 66 6f 72 65 20 63 |uration |before c|
|00002e00| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 72 6f 75 74 |alling t|his rout|
|00002e10| 69 6e 65 2e 0d 20 20 20 | 2a 20 49 66 20 79 6f 75 |ine.. |* If you|
|00002e20| 20 61 72 65 20 67 65 74 | 74 69 6e 67 20 6f 72 20 | are get|ting or |
|00002e30| 73 65 74 74 69 6e 67 20 | 6d 75 6c 74 69 70 6c 65 |setting |multiple|
|00002e40| 20 70 72 65 66 65 72 65 | 6e 63 65 73 2c 20 79 6f | prefere|nces, yo|
|00002e50| 75 20 73 68 6f 75 6c 64 | 20 70 6c 61 63 65 0d 20 |u should| place. |
|00002e60| 20 20 2a 20 74 68 65 73 | 65 20 63 61 6c 6c 73 20 | * thes|e calls |
|00002e70| 77 69 74 68 69 6e 20 61 | 6e 20 49 43 42 65 67 69 |within a|n ICBegi|
|00002e80| 6e 2f 49 43 45 6e 64 20 | 70 61 69 72 2e 0d 20 20 |n/ICEnd |pair.. |
|00002e90| 20 2a 20 49 66 20 79 6f | 75 20 63 61 6c 6c 20 74 | * If yo|u call t|
|00002ea0| 68 69 73 20 72 6f 75 74 | 69 6e 65 20 6f 75 74 73 |his rout|ine outs|
|00002eb0| 69 64 65 20 6f 66 20 73 | 75 63 68 20 61 20 70 61 |ide of s|uch a pa|
|00002ec0| 69 72 2c 20 69 74 20 69 | 6d 70 6c 69 63 69 74 6c |ir, it i|mplicitl|
|00002ed0| 79 0d 20 20 20 2a 20 63 | 61 6c 6c 73 20 49 43 42 |y. * c|alls ICB|
|00002ee0| 65 67 69 6e 28 69 6e 73 | 74 2c 20 69 63 52 65 61 |egin(ins|t, icRea|
|00002ef0| 64 57 72 69 74 65 50 65 | 72 6d 29 2e 0d 20 20 20 |dWritePe|rm).. |
|00002f00| 2a 20 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 65 |* This r|outine e|
|00002f10| 66 66 65 63 74 69 76 65 | 6c 79 20 72 65 70 6c 61 |ffective|ly repla|
|00002f20| 63 65 73 20 49 43 47 65 | 74 50 72 65 66 48 61 6e |ces ICGe|tPrefHan|
|00002f30| 64 6c 65 2e 0d 20 20 20 | 2a 20 52 65 61 64 73 20 |dle.. |* Reads |
|00002f40| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 20 73 |the pref|erence s|
|00002f50| 70 65 63 69 66 69 65 64 | 20 62 79 20 6b 65 79 20 |pecified| by key |
|00002f60| 66 72 6f 6d 20 74 68 65 | 20 49 43 20 64 61 74 61 |from the| IC data|
|00002f70| 62 61 73 65 20 69 6e 74 | 6f 0d 20 20 20 2a 20 61 |base int|o. * a|
|00002f80| 20 68 61 6e 64 6c 65 2c | 20 70 72 65 66 68 2e 0d | handle,| prefh..|
|00002f90| 20 20 20 2a 20 6b 65 79 | 20 6d 75 73 74 20 6e 6f | * key| must no|
|00002fa0| 74 20 62 65 20 74 68 65 | 20 65 6d 70 74 79 20 73 |t be the| empty s|
|00002fb0| 74 72 69 6e 67 2e 0d 20 | 20 20 2a 20 61 74 74 72 |tring.. | * attr|
|00002fc0| 20 69 73 20 73 65 74 20 | 74 6f 20 74 68 65 20 61 | is set |to the a|
|00002fd0| 74 74 72 69 62 75 74 65 | 73 20 61 73 73 6f 63 69 |ttribute|s associ|
|00002fe0| 61 74 65 64 20 77 69 74 | 68 20 74 68 65 20 70 72 |ated wit|h the pr|
|00002ff0| 65 66 65 72 65 6e 63 65 | 2e 0d 20 20 20 2a 20 59 |eference|.. * Y|
|00003000| 6f 75 20 6d 75 73 74 20 | 73 65 74 20 70 72 65 66 |ou must |set pref|
|00003010| 68 20 74 6f 20 61 20 6e | 6f 6e 2d 6e 69 6c 20 68 |h to a n|on-nil h|
|00003020| 61 6e 64 6c 65 20 62 65 | 66 6f 72 65 20 63 61 6c |andle be|fore cal|
|00003030| 6c 69 6e 67 20 74 68 69 | 73 20 72 6f 75 74 69 6e |ling thi|s routin|
|00003040| 65 2e 0d 20 20 20 2a 20 | 49 66 20 74 68 65 20 70 |e.. * |If the p|
|00003050| 72 65 66 65 72 65 6e 63 | 65 20 64 6f 65 73 20 6e |referenc|e does n|
|00003060| 6f 74 20 65 78 69 73 74 | 2c 20 69 63 50 72 65 66 |ot exist|, icPref|
|00003070| 4e 6f 74 46 6f 75 6e 64 | 45 72 72 20 69 73 20 72 |NotFound|Err is r|
|00003080| 65 74 75 72 6e 65 64 2e | 0d 20 20 20 2a 2f 0d 0d |eturned.|. */..|
|00003090| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|000030a0| 43 47 65 74 50 72 65 66 | 48 61 6e 64 6c 65 28 49 |CGetPref|Handle(I|
|000030b0| 43 49 6e 73 74 61 6e 63 | 65 20 69 6e 73 74 2c 20 |CInstanc|e inst, |
|000030c0| 43 6f 6e 73 74 53 74 72 | 32 35 35 50 61 72 61 6d |ConstStr|255Param|
|000030d0| 20 6b 65 79 2c 20 49 43 | 41 74 74 72 20 2a 61 74 | key, IC|Attr *at|
|000030e0| 74 72 2c 20 48 61 6e 64 | 6c 65 20 2a 70 72 65 66 |tr, Hand|le *pref|
|000030f0| 68 29 3b 0d 20 20 2f 2a | 20 52 65 71 75 69 72 65 |h);. /*| Require|
|00003100| 73 20 49 43 20 31 2e 31 | 2e 0d 20 20 20 2a 20 59 |s IC 1.1|.. * Y|
|00003110| 6f 75 20 6d 75 73 74 20 | 73 70 65 63 69 66 79 20 |ou must |specify |
|00003120| 61 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |a config|uration |
|00003130| 62 65 66 6f 72 65 20 63 | 61 6c 6c 69 6e 67 20 74 |before c|alling t|
|00003140| 68 69 73 20 72 6f 75 74 | 69 6e 65 2e 0d 20 20 20 |his rout|ine.. |
|00003150| 2a 20 49 66 20 79 6f 75 | 20 61 72 65 20 67 65 74 |* If you| are get|
|00003160| 74 69 6e 67 20 6f 72 20 | 73 65 74 74 69 6e 67 20 |ting or |setting |
|00003170| 6d 75 6c 74 69 70 6c 65 | 20 70 72 65 66 65 72 65 |multiple| prefere|
|00003180| 6e 63 65 73 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |nces, yo|u should|
|00003190| 20 70 6c 61 63 65 0d 20 | 20 20 2a 20 74 68 65 73 | place. | * thes|
|000031a0| 65 20 63 61 6c 6c 73 20 | 77 69 74 68 69 6e 20 61 |e calls |within a|
|000031b0| 6e 20 49 43 42 65 67 69 | 6e 2f 49 43 45 6e 64 20 |n ICBegi|n/ICEnd |
|000031c0| 70 61 69 72 2e 0d 20 20 | 20 2a 20 49 66 20 79 6f |pair.. | * If yo|
|000031d0| 75 20 63 61 6c 6c 20 74 | 68 69 73 20 72 6f 75 74 |u call t|his rout|
|000031e0| 69 6e 65 20 6f 75 74 73 | 69 64 65 20 6f 66 20 73 |ine outs|ide of s|
|000031f0| 75 63 68 20 61 20 70 61 | 69 72 2c 20 69 74 20 69 |uch a pa|ir, it i|
|00003200| 6d 70 6c 69 63 69 74 6c | 79 0d 20 20 20 2a 20 63 |mplicitl|y. * c|
|00003210| 61 6c 6c 73 20 49 43 42 | 65 67 69 6e 28 69 6e 73 |alls ICB|egin(ins|
|00003220| 74 2c 20 69 63 52 65 61 | 64 4f 6e 6c 79 50 65 72 |t, icRea|dOnlyPer|
|00003230| 6d 29 2e 0d 20 20 20 2a | 20 54 68 69 73 20 72 6f |m).. *| This ro|
|00003240| 75 74 69 6e 65 20 69 73 | 20 6e 6f 77 20 6f 62 73 |utine is| now obs|
|00003250| 6f 6c 65 74 65 2e 20 55 | 73 65 20 49 43 46 69 6e |olete. U|se ICFin|
|00003260| 64 50 72 65 66 48 61 6e | 64 6c 65 20 69 6e 73 74 |dPrefHan|dle inst|
|00003270| 65 61 64 2e 0d 20 20 20 | 2a 20 52 65 61 64 73 20 |ead.. |* Reads |
|00003280| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 20 73 |the pref|erence s|
|00003290| 70 65 63 69 66 69 65 64 | 20 62 79 20 6b 65 79 20 |pecified| by key |
|000032a0| 66 72 6f 6d 20 74 68 65 | 20 49 43 20 64 61 74 61 |from the| IC data|
|000032b0| 62 61 73 65 20 69 6e 74 | 6f 0d 20 20 20 2a 20 61 |base int|o. * a|
|000032c0| 20 6e 65 77 6c 79 20 63 | 72 65 61 74 65 64 20 68 | newly c|reated h|
|000032d0| 61 6e 64 6c 65 2c 20 70 | 72 65 66 68 2e 0d 20 20 |andle, p|refh.. |
|000032e0| 20 2a 20 6b 65 79 20 6d | 75 73 74 20 6e 6f 74 20 | * key m|ust not |
|000032f0| 62 65 20 74 68 65 20 65 | 6d 70 74 79 20 73 74 72 |be the e|mpty str|
|00003300| 69 6e 67 2e 0d 20 20 20 | 2a 20 61 74 74 72 20 69 |ing.. |* attr i|
|00003310| 73 20 73 65 74 20 74 6f | 20 74 68 65 20 61 74 74 |s set to| the att|
|00003320| 72 69 62 75 74 65 73 20 | 61 73 73 6f 63 69 61 74 |ributes |associat|
|00003330| 65 64 20 77 69 74 68 20 | 74 68 65 20 70 72 65 66 |ed with |the pref|
|00003340| 65 72 65 6e 63 65 2e 0d | 20 20 20 2a 20 54 68 65 |erence..| * The|
|00003350| 20 69 6e 63 6f 6d 69 6e | 67 20 76 61 6c 75 65 20 | incomin|g value |
|00003360| 6f 66 20 70 72 65 66 68 | 20 69 73 20 69 67 6e 6f |of prefh| is igno|
|00003370| 72 65 64 2e 0d 20 20 20 | 2a 20 41 20 6e 65 77 20 |red.. |* A new |
|00003380| 68 61 6e 64 6c 65 20 69 | 73 20 63 72 65 61 74 65 |handle i|s create|
|00003390| 64 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |d in the| current|
|000033a0| 20 68 65 61 70 20 61 6e | 64 20 72 65 74 75 72 6e | heap an|d return|
|000033b0| 65 64 20 69 6e 20 70 72 | 65 66 68 2e 0d 20 20 20 |ed in pr|efh.. |
|000033c0| 2a 20 49 66 20 74 68 65 | 20 72 6f 75 74 69 6e 65 |* If the| routine|
|000033d0| 20 72 65 74 75 72 6e 73 | 20 61 6e 20 65 72 72 6f | returns| an erro|
|000033e0| 72 2c 20 70 72 65 66 68 | 20 69 73 20 73 65 74 20 |r, prefh| is set |
|000033f0| 74 6f 20 6e 69 6c 2e 0d | 20 20 20 2a 20 49 66 20 |to nil..| * If |
|00003400| 74 68 65 20 70 72 65 66 | 65 72 65 6e 63 65 20 64 |the pref|erence d|
|00003410| 6f 65 73 20 6e 6f 74 20 | 65 78 69 73 74 2c 20 6e |oes not |exist, n|
|00003420| 6f 20 65 72 72 6f 72 20 | 69 73 20 72 65 74 75 72 |o error |is retur|
|00003430| 6e 65 64 20 61 6e 64 20 | 70 72 65 66 68 20 69 73 |ned and |prefh is|
|00003440| 20 73 65 74 0d 20 20 20 | 2a 20 74 6f 20 61 6e 20 | set. |* to an |
|00003450| 65 6d 70 74 79 20 68 61 | 6e 64 6c 65 2e 0d 20 20 |empty ha|ndle.. |
|00003460| 20 2a 2f 0d 0d 70 61 73 | 63 61 6c 20 49 43 45 72 | */..pas|cal ICEr|
|00003470| 72 6f 72 20 49 43 53 65 | 74 50 72 65 66 48 61 6e |ror ICSe|tPrefHan|
|00003480| 64 6c 65 28 49 43 49 6e | 73 74 61 6e 63 65 20 69 |dle(ICIn|stance i|
|00003490| 6e 73 74 2c 20 43 6f 6e | 73 74 53 74 72 32 35 35 |nst, Con|stStr255|
|000034a0| 50 61 72 61 6d 20 6b 65 | 79 2c 20 49 43 41 74 74 |Param ke|y, ICAtt|
|000034b0| 72 20 61 74 74 72 2c 20 | 48 61 6e 64 6c 65 20 70 |r attr, |Handle p|
|000034c0| 72 65 66 68 29 3b 0d 20 | 20 2f 2a 20 52 65 71 75 |refh);. | /* Requ|
|000034d0| 69 72 65 73 20 49 43 20 | 31 2e 31 2e 0d 20 20 20 |ires IC |1.1.. |
|000034e0| 2a 20 59 6f 75 20 6d 75 | 73 74 20 73 70 65 63 69 |* You mu|st speci|
|000034f0| 66 79 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |fy a con|figurati|
|00003500| 6f 6e 20 62 65 66 6f 72 | 65 20 63 61 6c 6c 69 6e |on befor|e callin|
|00003510| 67 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 2e 0d |g this r|outine..|
|00003520| 20 20 20 2a 20 49 66 20 | 79 6f 75 20 61 72 65 20 | * If |you are |
|00003530| 67 65 74 74 69 6e 67 20 | 6f 72 20 73 65 74 74 69 |getting |or setti|
|00003540| 6e 67 20 6d 75 6c 74 69 | 70 6c 65 20 70 72 65 66 |ng multi|ple pref|
|00003550| 65 72 65 6e 63 65 73 2c | 20 79 6f 75 20 73 68 6f |erences,| you sho|
|00003560| 75 6c 64 20 70 6c 61 63 | 65 0d 20 20 20 2a 20 74 |uld plac|e. * t|
|00003570| 68 65 73 65 20 63 61 6c | 6c 73 20 77 69 74 68 69 |hese cal|ls withi|
|00003580| 6e 20 61 6e 20 49 43 42 | 65 67 69 6e 2f 49 43 45 |n an ICB|egin/ICE|
|00003590| 6e 64 20 70 61 69 72 2e | 0d 20 20 20 2a 20 49 66 |nd pair.|. * If|
|000035a0| 20 79 6f 75 20 63 61 6c | 6c 20 74 68 69 73 20 72 | you cal|l this r|
|000035b0| 6f 75 74 69 6e 65 20 6f | 75 74 73 69 64 65 20 6f |outine o|utside o|
|000035c0| 66 20 73 75 63 68 20 61 | 20 70 61 69 72 2c 20 69 |f such a| pair, i|
|000035d0| 74 20 69 6d 70 6c 69 63 | 69 74 6c 79 0d 20 20 20 |t implic|itly. |
|000035e0| 2a 20 63 61 6c 6c 73 20 | 49 43 42 65 67 69 6e 28 |* calls |ICBegin(|
|000035f0| 69 6e 73 74 2c 20 69 63 | 52 65 61 64 57 72 69 74 |inst, ic|ReadWrit|
|00003600| 65 50 65 72 6d 29 2e 0d | 20 20 20 2a 20 53 65 74 |ePerm)..| * Set|
|00003610| 73 20 74 68 65 20 70 72 | 65 66 65 72 65 6e 63 65 |s the pr|eference|
|00003620| 20 73 70 65 63 69 66 69 | 65 64 20 62 79 20 6b 65 | specifi|ed by ke|
|00003630| 79 20 66 72 6f 6d 20 74 | 68 65 20 49 43 20 64 61 |y from t|he IC da|
|00003640| 74 61 62 61 73 65 20 74 | 6f 20 74 68 65 0d 20 20 |tabase t|o the. |
|00003650| 20 2a 20 76 61 6c 75 65 | 20 63 6f 6e 74 61 69 6e | * value| contain|
|00003660| 65 64 20 69 6e 20 70 72 | 65 66 68 2e 0d 20 20 20 |ed in pr|efh.. |
|00003670| 2a 20 6b 65 79 20 6d 75 | 73 74 20 6e 6f 74 20 62 |* key mu|st not b|
|00003680| 65 20 74 68 65 20 65 6d | 70 74 79 20 73 74 72 69 |e the em|pty stri|
|00003690| 6e 67 2e 0d 20 20 20 2a | 20 49 66 20 70 72 65 66 |ng.. *| If pref|
|000036a0| 68 20 69 73 20 6e 69 6c | 20 74 68 65 6e 20 74 68 |h is nil| then th|
|000036b0| 65 20 70 72 65 66 65 72 | 65 6e 63 65 20 76 61 6c |e prefer|ence val|
|000036c0| 75 65 20 69 73 20 6e 6f | 74 20 73 65 74 2e 0d 20 |ue is no|t set.. |
|000036d0| 20 20 2a 20 49 66 20 62 | 75 66 20 69 73 20 6e 6f | * If b|uf is no|
|000036e0| 74 20 6e 69 6c 20 74 68 | 65 6e 20 74 68 65 20 70 |t nil th|en the p|
|000036f0| 72 65 66 65 72 65 6e 63 | 65 20 76 61 6c 75 65 20 |referenc|e value |
|00003700| 69 73 20 73 65 74 20 74 | 6f 20 74 68 65 20 64 61 |is set t|o the da|
|00003710| 74 61 0d 20 20 20 2a 20 | 63 6f 6e 74 61 69 6e 65 |ta. * |containe|
|00003720| 64 20 69 6e 20 69 74 2e | 0d 20 20 20 2a 20 49 66 |d in it.|. * If|
|00003730| 20 61 74 74 72 20 69 73 | 20 49 43 61 74 74 72 5f | attr is| ICattr_|
|00003740| 6e 6f 5f 63 68 61 6e 67 | 65 20 74 68 65 6e 20 74 |no_chang|e then t|
|00003750| 68 65 20 70 72 65 66 65 | 72 65 6e 63 65 20 61 74 |he prefe|rence at|
|00003760| 74 72 69 62 75 74 65 73 | 20 61 72 65 20 6e 6f 74 |tributes| are not|
|00003770| 20 73 65 74 2e 0d 20 20 | 20 2a 20 4f 74 68 65 72 | set.. | * Other|
|00003780| 77 69 73 65 20 74 68 65 | 20 70 72 65 66 65 72 65 |wise the| prefere|
|00003790| 6e 63 65 20 61 74 74 72 | 69 62 75 74 65 73 20 61 |nce attr|ibutes a|
|000037a0| 72 65 20 73 65 74 20 74 | 6f 20 61 74 74 72 2e 0d |re set t|o attr..|
|000037b0| 20 20 20 2a 20 52 65 74 | 75 72 6e 73 20 69 63 50 | * Ret|urns icP|
|000037c0| 65 72 6d 45 72 72 20 69 | 66 20 74 68 65 20 70 72 |ermErr i|f the pr|
|000037d0| 65 76 69 6f 75 73 20 49 | 43 42 65 67 69 6e 20 77 |evious I|CBegin w|
|000037e0| 61 73 20 70 61 73 73 65 | 64 20 69 63 52 65 61 64 |as passe|d icRead|
|000037f0| 4f 6e 6c 79 50 65 72 6d | 2e 0d 20 20 20 2a 20 52 |OnlyPerm|.. * R|
|00003800| 65 74 75 72 6e 73 20 69 | 63 50 65 72 6d 45 72 72 |eturns i|cPermErr|
|00003810| 20 69 66 20 63 75 72 72 | 65 6e 74 20 61 74 74 72 | if curr|ent attr|
|00003820| 20 69 73 20 6c 6f 63 6b | 65 64 2c 20 6e 65 77 20 | is lock|ed, new |
|00003830| 61 74 74 72 20 69 73 20 | 6c 6f 63 6b 65 64 20 61 |attr is |locked a|
|00003840| 6e 64 20 70 72 65 66 68 | 20 3c 3e 20 6e 69 6c 2e |nd prefh| <> nil.|
|00003850| 0d 20 20 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |. */..|pascal I|
|00003860| 43 45 72 72 6f 72 20 49 | 43 43 6f 75 6e 74 50 72 |CError I|CCountPr|
|00003870| 65 66 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |ef(ICIns|tance in|
|00003880| 73 74 2c 20 6c 6f 6e 67 | 20 2a 63 6f 75 6e 74 29 |st, long| *count)|
|00003890| 3b 0d 20 20 2f 2a 20 59 | 6f 75 20 6d 75 73 74 20 |;. /* Y|ou must |
|000038a0| 73 70 65 63 69 66 79 20 | 61 20 63 6f 6e 66 69 67 |specify |a config|
|000038b0| 75 72 61 74 69 6f 6e 20 | 62 65 66 6f 72 65 20 63 |uration |before c|
|000038c0| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 72 6f 75 74 |alling t|his rout|
|000038d0| 69 6e 65 2e 0d 20 20 20 | 2a 20 59 6f 75 20 6d 75 |ine.. |* You mu|
|000038e0| 73 74 20 62 65 20 69 6e | 73 69 64 65 20 61 6e 20 |st be in|side an |
|000038f0| 49 43 42 65 67 69 6e 2f | 45 6e 64 20 70 61 69 72 |ICBegin/|End pair|
|00003900| 20 74 6f 20 63 61 6c 6c | 20 74 68 69 73 20 72 6f | to call| this ro|
|00003910| 75 74 69 6e 65 2e 0d 20 | 20 20 2a 20 43 6f 75 6e |utine.. | * Coun|
|00003920| 74 73 20 74 68 65 20 74 | 6f 74 61 6c 20 6e 75 6d |ts the t|otal num|
|00003930| 62 65 72 20 6f 66 20 70 | 72 65 66 65 72 65 6e 63 |ber of p|referenc|
|00003940| 65 73 2e 0d 20 20 20 2a | 20 49 66 20 74 68 65 20 |es.. *| If the |
|00003950| 72 6f 75 74 69 6e 65 20 | 72 65 74 75 72 6e 73 20 |routine |returns |
|00003960| 61 6e 20 65 72 72 6f 72 | 2c 20 63 6f 75 6e 74 20 |an error|, count |
|00003970| 69 73 20 73 65 74 20 74 | 6f 20 30 2e 0d 20 20 20 |is set t|o 0.. |
|00003980| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|00003990| 6f 72 20 49 43 47 65 74 | 49 6e 64 50 72 65 66 28 |or ICGet|IndPref(|
|000039a0| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|000039b0| 20 6c 6f 6e 67 20 6e 2c | 20 53 74 72 32 35 35 20 | long n,| Str255 |
|000039c0| 6b 65 79 29 3b 0d 20 20 | 2f 2a 20 59 6f 75 20 6d |key);. |/* You m|
|000039d0| 75 73 74 20 73 70 65 63 | 69 66 79 20 61 20 63 6f |ust spec|ify a co|
|000039e0| 6e 66 69 67 75 72 61 74 | 69 6f 6e 20 62 65 66 6f |nfigurat|ion befo|
|000039f0| 72 65 20 63 61 6c 6c 69 | 6e 67 20 74 68 69 73 20 |re calli|ng this |
|00003a00| 72 6f 75 74 69 6e 65 2e | 0d 20 20 20 2a 20 59 6f |routine.|. * Yo|
|00003a10| 75 20 6d 75 73 74 20 62 | 65 20 69 6e 73 69 64 65 |u must b|e inside|
|00003a20| 20 61 6e 20 49 43 42 65 | 67 69 6e 2f 45 6e 64 20 | an ICBe|gin/End |
|00003a30| 70 61 69 72 20 74 6f 20 | 63 61 6c 6c 20 74 68 69 |pair to |call thi|
|00003a40| 73 20 72 6f 75 74 69 6e | 65 2e 0d 20 20 20 2a 20 |s routin|e.. * |
|00003a50| 52 65 74 75 72 6e 73 20 | 74 68 65 20 6b 65 79 20 |Returns |the key |
|00003a60| 6f 66 20 74 68 65 20 4e | 74 68 20 70 72 65 66 65 |of the N|th prefe|
|00003a70| 72 65 6e 63 65 2e 0d 20 | 20 20 2a 20 6e 20 6d 75 |rence.. | * n mu|
|00003a80| 73 74 20 62 65 20 70 6f | 73 69 74 69 76 65 2e 0d |st be po|sitive..|
|00003a90| 20 20 20 2a 20 52 65 74 | 75 72 6e 73 20 69 63 50 | * Ret|urns icP|
|00003aa0| 72 65 66 4e 6f 74 46 6f | 75 6e 64 45 72 72 20 69 |refNotFo|undErr i|
|00003ab0| 66 20 6e 20 69 73 20 67 | 72 65 61 74 65 72 20 74 |f n is g|reater t|
|00003ac0| 68 61 6e 20 74 68 65 20 | 74 6f 74 61 6c 20 6e 75 |han the |total nu|
|00003ad0| 6d 62 65 72 20 6f 66 20 | 70 72 65 66 65 72 65 6e |mber of |preferen|
|00003ae0| 63 65 73 2e 0d 20 20 20 | 2a 20 49 66 20 74 68 65 |ces.. |* If the|
|00003af0| 20 72 6f 75 74 69 6e 65 | 20 72 65 74 75 72 6e 73 | routine| returns|
|00003b00| 20 61 6e 20 65 72 72 6f | 72 2c 20 6b 65 79 20 69 | an erro|r, key i|
|00003b10| 73 20 75 6e 64 65 66 69 | 6e 65 64 2e 0d 20 20 20 |s undefi|ned.. |
|00003b20| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|00003b30| 6f 72 20 49 43 44 65 6c | 65 74 65 50 72 65 66 28 |or ICDel|etePref(|
|00003b40| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|00003b50| 20 43 6f 6e 73 74 53 74 | 72 32 35 35 50 61 72 61 | ConstSt|r255Para|
|00003b60| 6d 20 6b 65 79 29 3b 0d | 20 20 2f 2a 20 59 6f 75 |m key);.| /* You|
|00003b70| 20 6d 75 73 74 20 73 70 | 65 63 69 66 79 20 61 20 | must sp|ecify a |
|00003b80| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 62 65 |configur|ation be|
|00003b90| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 74 68 69 |fore cal|ling thi|
|00003ba0| 73 20 72 6f 75 74 69 6e | 65 2e 0d 20 20 20 2a 20 |s routin|e.. * |
|00003bb0| 59 6f 75 20 6d 75 73 74 | 20 62 65 20 69 6e 73 69 |You must| be insi|
|00003bc0| 64 65 20 61 6e 20 49 43 | 42 65 67 69 6e 2f 45 6e |de an IC|Begin/En|
|00003bd0| 64 20 70 61 69 72 20 74 | 6f 20 63 61 6c 6c 20 74 |d pair t|o call t|
|00003be0| 68 69 73 20 72 6f 75 74 | 69 6e 65 2e 0d 20 20 20 |his rout|ine.. |
|00003bf0| 2a 20 44 65 6c 65 74 65 | 73 20 74 68 65 20 70 72 |* Delete|s the pr|
|00003c00| 65 66 65 72 65 6e 63 65 | 20 73 70 65 63 69 66 69 |eference| specifi|
|00003c10| 65 64 20 62 79 20 6b 65 | 79 2e 0d 20 20 20 2a 20 |ed by ke|y.. * |
|00003c20| 6b 65 79 20 6d 75 73 74 | 20 6e 6f 74 20 62 65 20 |key must| not be |
|00003c30| 74 68 65 20 65 6d 70 74 | 79 20 73 74 72 69 6e 67 |the empt|y string|
|00003c40| 2e 0d 20 20 20 2a 20 52 | 65 74 75 72 6e 73 20 69 |.. * R|eturns i|
|00003c50| 63 50 72 65 66 4e 6f 74 | 46 6f 75 6e 64 20 69 66 |cPrefNot|Found if|
|00003c60| 20 74 68 65 20 70 72 65 | 66 65 72 65 6e 63 65 20 | the pre|ference |
|00003c70| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 6b 65 79 |specifie|d by key|
|00003c80| 20 69 73 20 6e 6f 74 20 | 70 72 65 73 65 6e 74 2e | is not |present.|
|00003c90| 0d 20 20 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |. */..|pascal I|
|00003ca0| 43 45 72 72 6f 72 20 49 | 43 45 6e 64 28 49 43 49 |CError I|CEnd(ICI|
|00003cb0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 29 3b 0d 20 |nstance |inst);. |
|00003cc0| 20 2f 2a 20 59 6f 75 20 | 6d 75 73 74 20 73 70 65 | /* You |must spe|
|00003cd0| 63 69 66 79 20 61 20 63 | 6f 6e 66 69 67 75 72 61 |cify a c|onfigura|
|00003ce0| 74 69 6f 6e 20 62 65 66 | 6f 72 65 20 63 61 6c 6c |tion bef|ore call|
|00003cf0| 69 6e 67 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |ing this| routine|
|00003d00| 2e 0d 20 20 20 2a 20 59 | 6f 75 20 6d 75 73 74 20 |.. * Y|ou must |
|00003d10| 62 65 20 69 6e 73 69 64 | 65 20 61 6e 20 49 43 42 |be insid|e an ICB|
|00003d20| 65 67 69 6e 2f 45 6e 64 | 20 70 61 69 72 20 74 6f |egin/End| pair to|
|00003d30| 20 63 61 6c 6c 20 74 68 | 69 73 20 72 6f 75 74 69 | call th|is routi|
|00003d40| 6e 65 2e 0d 20 20 20 2a | 20 54 65 72 6d 69 6e 61 |ne.. *| Termina|
|00003d50| 74 65 73 20 61 20 70 72 | 65 66 65 72 65 6e 63 65 |tes a pr|eference|
|00003d60| 20 73 65 73 73 69 6f 6e | 2c 20 61 73 20 73 74 61 | session|, as sta|
|00003d70| 72 74 65 64 20 62 79 20 | 49 43 42 65 67 69 6e 2e |rted by |ICBegin.|
|00003d80| 0d 20 20 20 2a 20 59 6f | 75 20 6d 75 73 74 20 68 |. * Yo|u must h|
|00003d90| 61 76 65 20 63 61 6c 6c | 65 64 20 49 43 42 65 67 |ave call|ed ICBeg|
|00003da0| 69 6e 20 62 65 66 6f 72 | 65 20 63 61 6c 6c 69 6e |in befor|e callin|
|00003db0| 67 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 2e 0d |g this r|outine..|
|00003dc0| 20 20 20 2a 2f 0d 0d 2f | 2a 20 2a 2a 2a 2a 2a 20 | */../|* ***** |
|00003dd0| 55 73 65 72 20 49 6e 74 | 65 72 66 61 63 65 20 53 |User Int|erface S|
|00003de0| 74 75 66 66 20 2a 2a 2a | 2a 2a 20 2a 2f 0d 0d 70 |tuff ***|** */..p|
|00003df0| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|00003e00| 45 64 69 74 50 72 65 66 | 65 72 65 6e 63 65 73 28 |EditPref|erences(|
|00003e10| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 2c |ICInstan|ce inst,|
|00003e20| 20 43 6f 6e 73 74 53 74 | 72 32 35 35 50 61 72 61 | ConstSt|r255Para|
|00003e30| 6d 20 6b 65 79 29 3b 0d | 20 20 2f 2a 20 52 65 71 |m key);.| /* Req|
|00003e40| 75 69 72 65 73 20 49 43 | 20 31 2e 31 2e 0d 20 20 |uires IC| 1.1.. |
|00003e50| 20 2a 20 59 6f 75 20 6d | 75 73 74 20 73 70 65 63 | * You m|ust spec|
|00003e60| 69 66 79 20 61 20 63 6f | 6e 66 69 67 75 72 61 74 |ify a co|nfigurat|
|00003e70| 69 6f 6e 20 62 65 66 6f | 72 65 20 63 61 6c 6c 69 |ion befo|re calli|
|00003e80| 6e 67 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 2e |ng this |routine.|
|00003e90| 0d 20 20 20 2a 20 59 6f | 75 20 64 6f 20 6e 6f 74 |. * Yo|u do not|
|00003ea0| 20 68 61 76 65 20 74 6f | 20 62 65 20 69 6e 73 69 | have to| be insi|
|00003eb0| 64 65 20 61 6e 20 49 43 | 42 65 67 69 6e 2f 45 6e |de an IC|Begin/En|
|00003ec0| 64 20 70 61 69 72 20 74 | 6f 20 63 61 6c 6c 20 74 |d pair t|o call t|
|00003ed0| 68 69 73 20 72 6f 75 74 | 69 6e 65 2e 0d 20 20 20 |his rout|ine.. |
|00003ee0| 2a 20 49 6e 73 74 72 75 | 63 74 73 20 49 43 20 74 |* Instru|cts IC t|
|00003ef0| 6f 20 64 69 73 70 6c 61 | 79 20 74 68 65 20 75 73 |o displa|y the us|
|00003f00| 65 72 20 69 6e 74 65 72 | 66 61 63 65 20 61 73 73 |er inter|face ass|
|00003f10| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 65 64 69 |ociated |with edi|
|00003f20| 74 69 6e 67 0d 20 20 20 | 2a 20 70 72 65 66 65 72 |ting. |* prefer|
|00003f30| 65 6e 63 65 73 20 61 6e | 64 20 66 6f 63 75 73 69 |ences an|d focusi|
|00003f40| 6e 67 20 6f 6e 20 74 68 | 65 20 70 72 65 66 65 72 |ng on th|e prefer|
|00003f50| 65 6e 63 65 20 73 70 65 | 63 69 66 69 65 64 20 62 |ence spe|cified b|
|00003f60| 79 20 6b 65 79 2e 0d 20 | 20 20 2a 20 49 66 20 6b |y key.. | * If k|
|00003f70| 65 79 20 69 73 20 74 68 | 65 20 65 6d 70 74 79 20 |ey is th|e empty |
|00003f80| 73 74 72 69 6e 67 20 74 | 68 65 6e 20 6e 6f 20 70 |string t|hen no p|
|00003f90| 72 65 66 65 72 65 6e 63 | 65 20 73 68 6f 75 6c 64 |referenc|e should|
|00003fa0| 20 62 65 20 66 6f 63 75 | 73 65 64 20 75 70 6f 6e | be focu|sed upon|
|00003fb0| 2e 0d 20 20 20 2a 20 59 | 6f 75 20 6d 75 73 74 20 |.. * Y|ou must |
|00003fc0| 68 61 76 65 20 73 70 65 | 63 69 66 69 65 64 20 61 |have spe|cified a|
|00003fd0| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 62 | configu|ration b|
|00003fe0| 65 66 6f 72 65 20 63 61 | 6c 6c 69 6e 67 20 74 68 |efore ca|lling th|
|00003ff0| 69 73 20 72 6f 75 74 69 | 6e 65 2e 0d 20 20 20 2a |is routi|ne.. *|
|00004000| 20 59 6f 75 20 64 6f 20 | 6e 6f 74 20 6e 65 65 64 | You do |not need|
|00004010| 20 74 6f 20 63 61 6c 6c | 20 49 43 42 65 67 69 6e | to call| ICBegin|
|00004020| 20 62 65 66 6f 72 65 20 | 63 61 6c 6c 69 6e 67 20 | before |calling |
|00004030| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 2e 0d 20 20 |this rou|tine.. |
|00004040| 20 2a 20 49 6e 20 74 68 | 65 20 63 75 72 72 65 6e | * In th|e curren|
|00004050| 74 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |t implem|entation|
|00004060| 20 74 68 69 73 20 6c 61 | 75 6e 63 68 65 73 20 74 | this la|unches t|
|00004070| 68 65 20 49 43 20 61 70 | 70 6c 69 63 61 74 69 6f |he IC ap|plicatio|
|00004080| 6e 0d 20 20 20 2a 20 28 | 6f 72 20 62 72 69 6e 67 |n. * (|or bring|
|00004090| 73 20 69 74 20 74 6f 20 | 74 68 65 20 66 72 6f 6e |s it to |the fron|
|000040a0| 74 29 20 61 6e 64 20 64 | 69 73 70 6c 61 79 73 20 |t) and d|isplays |
|000040b0| 74 68 65 20 77 69 6e 64 | 6f 77 20 63 6f 6e 74 61 |the wind|ow conta|
|000040c0| 69 6e 69 6e 67 0d 20 20 | 20 2a 20 74 68 65 20 70 |ining. | * the p|
|000040d0| 72 65 66 65 72 65 6e 63 | 65 20 73 70 65 63 69 66 |referenc|e specif|
|000040e0| 69 65 64 20 62 79 20 6b | 65 79 2e 0d 20 20 20 2a |ied by k|ey.. *|
|000040f0| 20 49 74 20 6d 61 79 20 | 68 61 76 65 20 61 20 72 | It may |have a r|
|00004100| 61 64 69 63 61 6c 6c 79 | 20 64 69 66 66 65 72 65 |adically| differe|
|00004110| 6e 74 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |nt imple|mentatio|
|00004120| 6e 20 69 6e 20 66 75 74 | 75 72 65 0d 20 20 20 2a |n in fut|ure. *|
|00004130| 20 49 43 20 73 79 73 74 | 65 6d 73 2e 0d 20 20 20 | IC syst|ems.. |
|00004140| 2a 2f 0d 0d 2f 2a 20 2a | 2a 2a 2a 2a 20 55 52 4c |*/../* *|**** URL|
|00004150| 20 48 61 6e 64 6c 69 6e | 67 20 2a 2a 2a 2a 2a 20 | Handlin|g ***** |
|00004160| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|00004170| 6f 72 20 49 43 50 61 72 | 73 65 55 52 4c 28 49 43 |or ICPar|seURL(IC|
|00004180| 49 6e 73 74 61 6e 63 65 | 20 69 6e 73 74 2c 20 43 |Instance| inst, C|
|00004190| 6f 6e 73 74 53 74 72 32 | 35 35 50 61 72 61 6d 20 |onstStr2|55Param |
|000041a0| 68 69 6e 74 2c 20 50 74 | 72 20 64 61 74 61 2c 20 |hint, Pt|r data, |
|000041b0| 6c 6f 6e 67 20 6c 65 6e | 2c 20 6c 6f 6e 67 20 2a |long len|, long *|
|000041c0| 73 65 6c 53 74 61 72 74 | 2c 20 6c 6f 6e 67 20 2a |selStart|, long *|
|000041d0| 73 65 6c 45 6e 64 2c 20 | 48 61 6e 64 6c 65 20 75 |selEnd, |Handle u|
|000041e0| 72 6c 29 3b 0d 20 20 2f | 2a 20 52 65 71 75 69 72 |rl);. /|* Requir|
|000041f0| 65 73 20 49 43 20 31 2e | 31 2e 0d 20 20 20 2a 20 |es IC 1.|1.. * |
|00004200| 59 6f 75 20 6d 75 73 74 | 20 73 70 65 63 69 66 79 |You must| specify|
|00004210| 20 61 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e | a confi|guration|
|00004220| 20 62 65 66 6f 72 65 20 | 63 61 6c 6c 69 6e 67 20 | before |calling |
|00004230| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 2e 0d 20 20 |this rou|tine.. |
|00004240| 20 2a 20 59 6f 75 20 64 | 6f 20 6e 6f 74 20 68 61 | * You d|o not ha|
|00004250| 76 65 20 74 6f 20 62 65 | 20 69 6e 73 69 64 65 20 |ve to be| inside |
|00004260| 61 6e 20 49 43 42 65 67 | 69 6e 2f 45 6e 64 20 70 |an ICBeg|in/End p|
|00004270| 61 69 72 20 74 6f 20 63 | 61 6c 6c 20 74 68 69 73 |air to c|all this|
|00004280| 20 72 6f 75 74 69 6e 65 | 2e 0d 20 20 20 2a 20 50 | routine|.. * P|
|00004290| 61 72 73 65 73 20 61 20 | 55 52 4c 20 6f 75 74 20 |arses a |URL out |
|000042a0| 6f 66 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |of the s|pecified|
|000042b0| 20 74 65 78 74 20 61 6e | 64 20 72 65 74 75 72 6e | text an|d return|
|000042c0| 73 20 69 74 20 69 6e 20 | 61 20 63 61 6e 6f 6e 69 |s it in |a canoni|
|000042d0| 63 61 6c 20 66 6f 72 6d | 0d 20 20 20 2a 20 69 6e |cal form|. * in|
|000042e0| 20 61 20 68 61 6e 64 6c | 65 2e 0d 20 20 20 2a 20 | a handl|e.. * |
|000042f0| 68 69 6e 74 20 69 6e 64 | 69 63 61 74 65 73 20 74 |hint ind|icates t|
|00004300| 68 65 20 64 65 66 61 75 | 6c 74 20 73 63 68 65 6d |he defau|lt schem|
|00004310| 65 20 66 6f 72 20 55 52 | 4c 73 20 6f 66 20 74 68 |e for UR|Ls of th|
|00004320| 65 20 66 6f 72 6d 20 22 | 6e 61 6d 65 40 61 64 64 |e form "|name@add|
|00004330| 72 65 73 73 22 2e 0d 20 | 20 20 2a 20 49 66 20 68 |ress".. | * If h|
|00004340| 69 6e 74 20 69 73 20 74 | 68 65 20 65 6d 70 74 79 |int is t|he empty|
|00004350| 20 73 74 72 69 6e 67 20 | 74 68 65 6e 20 55 52 4c | string |then URL|
|00004360| 73 20 6f 66 20 74 68 61 | 74 20 66 6f 72 6d 20 61 |s of tha|t form a|
|00004370| 72 65 20 6e 6f 74 20 61 | 6c 6c 6f 77 65 64 2e 0d |re not a|llowed..|
|00004380| 20 20 20 2a 20 64 61 74 | 61 20 70 6f 69 6e 74 73 | * dat|a points|
|00004390| 20 74 6f 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 | to the |start of|
|000043a0| 20 74 68 65 20 74 65 78 | 74 2e 20 49 74 20 6d 75 | the tex|t. It mu|
|000043b0| 73 74 20 6e 6f 74 20 62 | 65 20 6e 69 6c 2e 0d 20 |st not b|e nil.. |
|000043c0| 20 20 2a 20 6c 65 6e 20 | 69 6e 64 69 63 61 74 65 | * len |indicate|
|000043d0| 73 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |s the le|ngth of |
|000043e0| 74 68 65 20 74 65 78 74 | 2e 20 49 74 20 6d 75 73 |the text|. It mus|
|000043f0| 74 20 62 65 20 6e 6f 6e | 2d 6e 65 67 61 74 69 76 |t be non|-negativ|
|00004400| 65 2e 0d 20 20 20 2a 20 | 73 65 6c 53 74 61 72 74 |e.. * |selStart|
|00004410| 20 61 6e 64 20 73 65 6c | 45 6e 64 20 73 68 6f 75 | and sel|End shou|
|00004420| 6c 64 20 62 65 20 70 61 | 73 73 65 64 20 69 6e 20 |ld be pa|ssed in |
|00004430| 61 73 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |as the c|urrent s|
|00004440| 65 6c 65 63 74 69 6f 6e | 20 6f 66 0d 20 20 20 2a |election| of. *|
|00004450| 20 74 68 65 20 74 65 78 | 74 2e 20 54 68 69 73 20 | the tex|t. This |
|00004460| 73 65 6c 65 63 74 69 6f | 6e 20 69 73 20 67 69 76 |selectio|n is giv|
|00004470| 65 6e 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 6d |en in th|e same m|
|00004480| 61 6e 6e 65 72 20 61 73 | 20 54 65 78 74 45 64 69 |anner as| TextEdi|
|00004490| 74 2c 0d 20 20 20 2a 20 | 69 65 20 69 66 20 73 65 |t,. * |ie if se|
|000044a0| 6c 53 74 61 72 74 20 3d | 20 73 65 6c 45 6e 64 20 |lStart =| selEnd |
|000044b0| 74 68 65 6e 20 74 68 65 | 72 65 20 69 73 20 6e 6f |then the|re is no|
|000044c0| 20 73 65 6c 65 63 74 69 | 6f 6e 20 6f 6e 6c 79 20 | selecti|on only |
|000044d0| 61 6e 20 69 6e 73 65 72 | 74 69 6f 6e 0d 20 20 20 |an inser|tion. |
|000044e0| 2a 20 70 6f 69 6e 74 2e | 20 41 6c 73 6f 20 73 65 |* point.| Also se|
|000044f0| 6c 53 74 61 72 74 20 b2 | 20 73 65 6c 45 6e 64 20 |lStart .| selEnd |
|00004500| 61 6e 64 20 30 20 b2 20 | 73 65 6c 53 74 61 72 74 |and 0 . |selStart|
|00004510| 20 b2 20 6c 65 6e 20 61 | 6e 64 20 30 20 b2 20 73 | . len a|nd 0 . s|
|00004520| 65 6c 45 6e 64 20 b2 20 | 6c 65 6e 2e 0d 20 20 20 |elEnd . |len.. |
|00004530| 2a 20 73 65 6c 53 74 61 | 72 74 20 61 6e 64 20 73 |* selSta|rt and s|
|00004540| 65 6c 45 6e 64 20 61 72 | 65 20 72 65 74 75 72 6e |elEnd ar|e return|
|00004550| 65 64 20 61 73 20 74 68 | 65 20 62 6f 75 6e 64 73 |ed as th|e bounds|
|00004560| 20 6f 66 20 74 68 65 20 | 55 52 4c 2e 20 49 66 20 | of the |URL. If |
|00004570| 74 68 65 0d 20 20 20 2a | 20 72 6f 75 74 69 6e 65 |the. *| routine|
|00004580| 20 72 65 74 75 72 6e 73 | 20 61 6e 20 65 72 72 6f | returns| an erro|
|00004590| 72 20 74 68 65 6e 20 74 | 68 65 73 65 20 6e 65 77 |r then t|hese new|
|000045a0| 20 62 6f 75 6e 64 61 72 | 69 65 73 20 6d 61 79 20 | boundar|ies may |
|000045b0| 62 65 0d 20 20 20 2a 20 | 69 6e 76 61 6c 69 64 20 |be. * |invalid |
|000045c0| 62 75 74 20 74 68 65 79 | 20 77 69 6c 6c 20 62 65 |but they| will be|
|000045d0| 20 63 6c 6f 73 65 2e 0d | 20 20 20 2a 20 54 68 65 | close..| * The|
|000045e0| 20 69 6e 63 6f 6d 69 6e | 67 20 75 72 6c 20 68 61 | incomin|g url ha|
|000045f0| 6e 64 6c 65 20 6d 75 73 | 74 20 6e 6f 74 20 62 65 |ndle mus|t not be|
|00004600| 20 6e 69 6c 2e 20 20 54 | 68 65 20 72 65 73 75 6c | nil. T|he resul|
|00004610| 74 69 6e 67 20 55 52 4c | 20 69 73 20 6e 6f 72 6d |ting URL| is norm|
|00004620| 61 6c 69 73 65 64 0d 20 | 20 20 2a 20 61 6e 64 20 |alised. | * and |
|00004630| 63 6f 70 69 65 64 20 69 | 6e 74 6f 20 74 68 65 20 |copied i|nto the |
|00004640| 75 72 6c 20 68 61 6e 64 | 6c 65 2c 20 77 68 69 63 |url hand|le, whic|
|00004650| 68 20 69 73 20 72 65 73 | 69 7a 65 64 20 74 6f 20 |h is res|ized to |
|00004660| 66 69 74 2e 0d 20 20 20 | 2a 2f 0d 0d 70 61 73 63 |fit.. |*/..pasc|
|00004670| 61 6c 20 49 43 45 72 72 | 6f 72 20 49 43 4c 61 75 |al ICErr|or ICLau|
|00004680| 6e 63 68 55 52 4c 28 49 | 43 49 6e 73 74 61 6e 63 |nchURL(I|CInstanc|
|00004690| 65 20 69 6e 73 74 2c 20 | 43 6f 6e 73 74 53 74 72 |e inst, |ConstStr|
|000046a0| 32 35 35 50 61 72 61 6d | 20 68 69 6e 74 2c 20 50 |255Param| hint, P|
|000046b0| 74 72 20 64 61 74 61 2c | 20 6c 6f 6e 67 20 6c 65 |tr data,| long le|
|000046c0| 6e 2c 20 6c 6f 6e 67 20 | 2a 73 65 6c 53 74 61 72 |n, long |*selStar|
|000046d0| 74 2c 20 6c 6f 6e 67 20 | 2a 73 65 6c 45 6e 64 29 |t, long |*selEnd)|
|000046e0| 3b 0d 20 20 2f 2a 20 52 | 65 71 75 69 72 65 73 20 |;. /* R|equires |
|000046f0| 49 43 20 31 2e 31 2e 0d | 20 20 20 2a 20 59 6f 75 |IC 1.1..| * You|
|00004700| 20 6d 75 73 74 20 73 70 | 65 63 69 66 79 20 61 20 | must sp|ecify a |
|00004710| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 62 65 |configur|ation be|
|00004720| 66 6f 72 65 20 63 61 6c | 6c 69 6e 67 20 74 68 69 |fore cal|ling thi|
|00004730| 73 20 72 6f 75 74 69 6e | 65 2e 0d 20 20 20 2a 20 |s routin|e.. * |
|00004740| 59 6f 75 20 64 6f 20 6e | 6f 74 20 68 61 76 65 20 |You do n|ot have |
|00004750| 74 6f 20 62 65 20 69 6e | 73 69 64 65 20 61 6e 20 |to be in|side an |
|00004760| 49 43 42 65 67 69 6e 2f | 45 6e 64 20 70 61 69 72 |ICBegin/|End pair|
|00004770| 20 74 6f 20 63 61 6c 6c | 20 74 68 69 73 20 72 6f | to call| this ro|
|00004780| 75 74 69 6e 65 2e 0d 20 | 20 20 2a 20 50 61 72 73 |utine.. | * Pars|
|00004790| 65 73 20 61 20 55 52 4c | 20 6f 75 74 20 6f 66 20 |es a URL| out of |
|000047a0| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 74 65 |the spec|ified te|
|000047b0| 78 74 20 61 6e 64 20 66 | 65 65 64 73 20 69 74 20 |xt and f|eeds it |
|000047c0| 6f 66 66 20 74 6f 20 74 | 68 65 0d 20 20 20 2a 20 |off to t|he. * |
|000047d0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 68 65 6c 70 |appropri|ate help|
|000047e0| 65 72 2e 0d 20 20 20 2a | 20 68 69 6e 74 20 69 6e |er.. *| hint in|
|000047f0| 64 69 63 61 74 65 73 20 | 74 68 65 20 64 65 66 61 |dicates |the defa|
|00004800| 75 6c 74 20 73 63 68 65 | 6d 65 20 66 6f 72 20 55 |ult sche|me for U|
|00004810| 52 4c 73 20 6f 66 20 74 | 68 65 20 66 6f 72 6d 20 |RLs of t|he form |
|00004820| 22 6e 61 6d 65 40 61 64 | 64 72 65 73 73 22 2e 0d |"name@ad|dress"..|
|00004830| 20 20 20 2a 20 49 66 20 | 68 69 6e 74 20 69 73 20 | * If |hint is |
|00004840| 74 68 65 20 65 6d 70 74 | 79 20 73 74 72 69 6e 67 |the empt|y string|
|00004850| 20 74 68 65 6e 20 55 52 | 4c 73 20 6f 66 20 74 68 | then UR|Ls of th|
|00004860| 61 74 20 66 6f 72 6d 20 | 61 72 65 20 6e 6f 74 20 |at form |are not |
|00004870| 61 6c 6c 6f 77 65 64 2e | 0d 20 20 20 2a 20 64 61 |allowed.|. * da|
|00004880| 74 61 20 70 6f 69 6e 74 | 73 20 74 6f 20 74 68 65 |ta point|s to the|
|00004890| 20 73 74 61 72 74 20 6f | 66 20 74 68 65 20 74 65 | start o|f the te|
|000048a0| 78 74 2e 20 49 74 20 6d | 75 73 74 20 6e 6f 74 20 |xt. It m|ust not |
|000048b0| 62 65 20 6e 69 6c 2e 0d | 20 20 20 2a 20 6c 65 6e |be nil..| * len|
|000048c0| 20 69 6e 64 69 63 61 74 | 65 73 20 74 68 65 20 6c | indicat|es the l|
|000048d0| 65 6e 67 74 68 20 6f 66 | 20 74 68 65 20 74 65 78 |ength of| the tex|
|000048e0| 74 2e 20 49 74 20 6d 75 | 73 74 20 62 65 20 6e 6f |t. It mu|st be no|
|000048f0| 6e 2d 6e 65 67 61 74 69 | 76 65 2e 0d 20 20 20 2a |n-negati|ve.. *|
|00004900| 20 73 65 6c 53 74 61 72 | 74 20 61 6e 64 20 73 65 | selStar|t and se|
|00004910| 6c 45 6e 64 20 73 68 6f | 75 6c 64 20 62 65 20 70 |lEnd sho|uld be p|
|00004920| 61 73 73 65 64 20 69 6e | 20 61 73 20 74 68 65 20 |assed in| as the |
|00004930| 63 75 72 72 65 6e 74 20 | 73 65 6c 65 63 74 69 6f |current |selectio|
|00004940| 6e 20 6f 66 0d 20 20 20 | 2a 20 74 68 65 20 74 65 |n of. |* the te|
|00004950| 78 74 2e 20 54 68 69 73 | 20 73 65 6c 65 63 74 69 |xt. This| selecti|
|00004960| 6f 6e 20 69 73 20 67 69 | 76 65 6e 20 69 6e 20 74 |on is gi|ven in t|
|00004970| 68 65 20 73 61 6d 65 20 | 6d 61 6e 6e 65 72 20 61 |he same |manner a|
|00004980| 73 20 54 65 78 74 45 64 | 69 74 2c 0d 20 20 20 2a |s TextEd|it,. *|
|00004990| 20 69 65 20 69 66 20 73 | 65 6c 53 74 61 72 74 20 | ie if s|elStart |
|000049a0| 3d 20 73 65 6c 45 6e 64 | 20 74 68 65 6e 20 74 68 |= selEnd| then th|
|000049b0| 65 72 65 20 69 73 20 6e | 6f 20 73 65 6c 65 63 74 |ere is n|o select|
|000049c0| 69 6f 6e 20 6f 6e 6c 79 | 20 61 6e 20 69 6e 73 65 |ion only| an inse|
|000049d0| 72 74 69 6f 6e 0d 20 20 | 20 2a 20 70 6f 69 6e 74 |rtion. | * point|
|000049e0| 2e 20 41 6c 73 6f 20 73 | 65 6c 53 74 61 72 74 20 |. Also s|elStart |
|000049f0| b2 20 73 65 6c 45 6e 64 | 20 61 6e 64 20 30 20 b2 |. selEnd| and 0 .|
|00004a00| 20 73 65 6c 53 74 61 72 | 74 20 b2 20 6c 65 6e 20 | selStar|t . len |
|00004a10| 61 6e 64 20 30 20 b2 20 | 73 65 6c 45 6e 64 20 b2 |and 0 . |selEnd .|
|00004a20| 20 6c 65 6e 2e 0d 20 20 | 20 2a 20 73 65 6c 53 74 | len.. | * selSt|
|00004a30| 61 72 74 20 61 6e 64 20 | 73 65 6c 45 6e 64 20 61 |art and |selEnd a|
|00004a40| 72 65 20 72 65 74 75 72 | 6e 65 64 20 61 73 20 74 |re retur|ned as t|
|00004a50| 68 65 20 62 6f 75 6e 64 | 73 20 6f 66 20 74 68 65 |he bound|s of the|
|00004a60| 20 55 52 4c 2e 20 49 66 | 20 74 68 65 0d 20 20 20 | URL. If| the. |
|00004a70| 2a 20 72 6f 75 74 69 6e | 65 20 72 65 74 75 72 6e |* routin|e return|
|00004a80| 73 20 61 6e 20 65 72 72 | 6f 72 20 74 68 65 6e 20 |s an err|or then |
|00004a90| 74 68 65 73 65 20 6e 65 | 77 20 62 6f 75 6e 64 61 |these ne|w bounda|
|00004aa0| 72 69 65 73 20 6d 61 79 | 20 62 65 0d 20 20 20 2a |ries may| be. *|
|00004ab0| 20 69 6e 76 61 6c 69 64 | 20 62 75 74 20 74 68 65 | invalid| but the|
|00004ac0| 79 20 77 69 6c 6c 20 62 | 65 20 63 6c 6f 73 65 2e |y will b|e close.|
|00004ad0| 0d 20 20 20 2a 20 54 68 | 65 20 55 52 4c 20 69 73 |. * Th|e URL is|
|00004ae0| 20 70 61 72 73 65 64 20 | 6f 75 74 20 6f 66 20 74 | parsed |out of t|
|00004af0| 68 65 20 74 65 78 74 20 | 61 6e 64 20 70 61 73 73 |he text |and pass|
|00004b00| 65 64 20 6f 66 66 20 74 | 6f 20 74 68 65 20 61 70 |ed off t|o the ap|
|00004b10| 70 72 6f 70 72 69 61 74 | 65 0d 20 20 20 2a 20 68 |propriat|e. * h|
|00004b20| 65 6c 70 65 72 20 75 73 | 69 6e 67 20 74 68 65 20 |elper us|ing the |
|00004b30| 47 55 52 4c 20 41 70 70 | 6c 65 45 76 65 6e 74 2e |GURL App|leEvent.|
|00004b40| 0d 20 20 20 2a 2f 0d 0d | 2f 2a 20 2a 2a 2a 2a 2a |. */..|/* *****|
|00004b50| 20 4d 61 70 70 69 6e 67 | 73 20 52 6f 75 74 69 6e | Mapping|s Routin|
|00004b60| 65 73 20 2a 2a 2a 2a 2a | 0d 20 2a 20 0d 20 2a 20 |es *****|. * . * |
|00004b70| 52 6f 75 74 69 6e 65 73 | 20 66 6f 72 20 69 6e 74 |Routines| for int|
|00004b80| 65 72 72 6f 67 61 74 69 | 6e 67 20 6d 61 70 70 69 |errogati|ng mappi|
|00004b90| 6e 67 73 20 64 61 74 61 | 62 61 73 65 2e 0d 20 2a |ngs data|base.. *|
|00004ba0| 20 0d 20 2a 20 2d 2d 2d | 2d 2d 20 48 69 67 68 20 | . * ---|-- High |
|00004bb0| 4c 65 76 65 6c 20 52 6f | 75 74 69 6e 65 73 20 2d |Level Ro|utines -|
|00004bc0| 2d 2d 2d 2d 0d 20 2a 2f | 0d 0d 70 61 73 63 61 6c |----. */|..pascal|
|00004bd0| 20 49 43 45 72 72 6f 72 | 20 49 43 4d 61 70 46 69 | ICError| ICMapFi|
|00004be0| 6c 65 6e 61 6d 65 28 49 | 43 49 6e 73 74 61 6e 63 |lename(I|CInstanc|
|00004bf0| 65 20 69 6e 73 74 2c 20 | 43 6f 6e 73 74 53 74 72 |e inst, |ConstStr|
|00004c00| 32 35 35 50 61 72 61 6d | 20 66 69 6c 65 6e 61 6d |255Param| filenam|
|00004c10| 65 2c 20 49 43 4d 61 70 | 45 6e 74 72 79 20 2a 65 |e, ICMap|Entry *e|
|00004c20| 6e 74 72 79 29 3b 0d 20 | 20 2f 2a 20 52 65 71 75 |ntry);. | /* Requ|
|00004c30| 69 72 65 73 20 49 43 20 | 31 2e 31 2e 0d 20 20 20 |ires IC |1.1.. |
|00004c40| 2a 20 59 6f 75 20 6d 75 | 73 74 20 73 70 65 63 69 |* You mu|st speci|
|00004c50| 66 79 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |fy a con|figurati|
|00004c60| 6f 6e 20 62 65 66 6f 72 | 65 20 63 61 6c 6c 69 6e |on befor|e callin|
|00004c70| 67 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 2e 0d |g this r|outine..|
|00004c80| 20 20 20 2a 20 49 66 20 | 79 6f 75 20 61 72 65 20 | * If |you are |
|00004c90| 67 65 74 74 69 6e 67 20 | 6f 72 20 73 65 74 74 69 |getting |or setti|
|00004ca0| 6e 67 20 6d 75 6c 74 69 | 70 6c 65 20 70 72 65 66 |ng multi|ple pref|
|00004cb0| 65 72 65 6e 63 65 73 2c | 20 79 6f 75 20 73 68 6f |erences,| you sho|
|00004cc0| 75 6c 64 20 70 6c 61 63 | 65 0d 20 20 20 2a 20 74 |uld plac|e. * t|
|00004cd0| 68 65 73 65 20 63 61 6c | 6c 73 20 77 69 74 68 69 |hese cal|ls withi|
|00004ce0| 6e 20 61 6e 20 49 43 42 | 65 67 69 6e 2f 49 43 45 |n an ICB|egin/ICE|
|00004cf0| 6e 64 20 70 61 69 72 2e | 0d 20 20 20 2a 20 49 66 |nd pair.|. * If|
|00004d00| 20 79 6f 75 20 63 61 6c | 6c 20 74 68 69 73 20 72 | you cal|l this r|
|00004d10| 6f 75 74 69 6e 65 20 6f | 75 74 73 69 64 65 20 6f |outine o|utside o|
|00004d20| 66 20 73 75 63 68 20 61 | 20 70 61 69 72 2c 20 69 |f such a| pair, i|
|00004d30| 74 20 69 6d 70 6c 69 63 | 69 74 6c 79 0d 20 20 20 |t implic|itly. |
|00004d40| 2a 20 63 61 6c 6c 73 20 | 49 43 42 65 67 69 6e 28 |* calls |ICBegin(|
|00004d50| 69 6e 73 74 2c 20 69 63 | 52 65 61 64 57 72 69 74 |inst, ic|ReadWrit|
|00004d60| 65 50 65 72 6d 29 2e 0d | 20 20 20 2a 20 54 61 6b |ePerm)..| * Tak|
|00004d70| 65 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |es the n|ame of a|
|00004d80| 6e 20 69 6e 63 6f 6d 69 | 6e 67 20 66 69 6c 65 20 |n incomi|ng file |
|00004d90| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |and retu|rns the |
|00004da0| 6d 6f 73 74 20 61 70 70 | 72 6f 70 72 69 61 74 65 |most app|ropriate|
|00004db0| 0d 20 20 20 2a 20 6d 61 | 70 70 69 6e 67 73 20 64 |. * ma|ppings d|
|00004dc0| 61 74 61 62 61 73 65 20 | 65 6e 74 72 79 2c 20 62 |atabase |entry, b|
|00004dd0| 61 73 65 64 20 6f 6e 20 | 69 74 73 20 65 78 74 65 |ased on |its exte|
|00004de0| 6e 73 69 6f 6e 2e 0d 20 | 20 20 2a 20 66 69 6c 65 |nsion.. | * file|
|00004df0| 6e 61 6d 65 20 6d 75 73 | 74 20 6e 6f 74 20 62 65 |name mus|t not be|
|00004e00| 20 74 68 65 20 65 6d 70 | 74 79 20 73 74 72 69 6e | the emp|ty strin|
|00004e10| 67 2e 0d 20 20 20 2a 20 | 52 65 74 75 72 6e 73 20 |g.. * |Returns |
|00004e20| 69 63 50 72 65 66 4e 6f | 74 46 6f 75 6e 64 45 72 |icPrefNo|tFoundEr|
|00004e30| 72 20 69 66 20 6e 6f 20 | 73 75 69 74 61 62 6c 65 |r if no |suitable|
|00004e40| 20 65 6e 74 72 79 20 69 | 73 20 66 6f 75 6e 64 2e | entry i|s found.|
|00004e50| 0d 20 20 20 2a 2f 0d 0d | 70 61 73 63 61 6c 20 49 |. */..|pascal I|
|00004e60| 43 45 72 72 6f 72 20 49 | 43 4d 61 70 54 79 70 65 |CError I|CMapType|
|00004e70| 43 72 65 61 74 6f 72 28 | 49 43 49 6e 73 74 61 6e |Creator(|ICInstan|
|00004e80| 63 65 20 69 6e 73 74 2c | 20 4f 53 54 79 70 65 20 |ce inst,| OSType |
|00004e90| 66 54 79 70 65 2c 20 4f | 53 54 79 70 65 20 66 43 |fType, O|SType fC|
|00004ea0| 72 65 61 74 6f 72 2c 20 | 43 6f 6e 73 74 53 74 72 |reator, |ConstStr|
|00004eb0| 32 35 35 50 61 72 61 6d | 20 66 69 6c 65 6e 61 6d |255Param| filenam|
|00004ec0| 65 2c 20 49 43 4d 61 70 | 45 6e 74 72 79 20 2a 65 |e, ICMap|Entry *e|
|00004ed0| 6e 74 72 79 29 3b 0d 20 | 20 2f 2a 20 52 65 71 75 |ntry);. | /* Requ|
|00004ee0| 69 72 65 73 20 49 43 20 | 31 2e 31 2e 0d 20 20 20 |ires IC |1.1.. |
|00004ef0| 2a 20 59 6f 75 20 6d 75 | 73 74 20 73 70 65 63 69 |* You mu|st speci|
|00004f00| 66 79 20 61 20 63 6f 6e | 66 69 67 75 72 61 74 69 |fy a con|figurati|
|00004f10| 6f 6e 20 62 65 66 6f 72 | 65 20 63 61 6c 6c 69 6e |on befor|e callin|
|00004f20| 67 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 2e 0d |g this r|outine..|
|00004f30| 20 20 20 2a 20 59 6f 75 | 20 6d 75 73 74 20 62 65 | * You| must be|
|00004f40| 20 69 6e 73 69 64 65 20 | 61 6e 20 49 43 42 65 67 | inside |an ICBeg|
|00004f50| 69 6e 2f 45 6e 64 20 70 | 61 69 72 20 74 6f 20 63 |in/End p|air to c|
|00004f60| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|00004f70| 2e 0d 20 20 20 2a 20 54 | 61 6b 65 73 20 74 68 65 |.. * T|akes the|
|00004f80| 20 74 79 70 65 20 61 6e | 64 20 63 72 65 61 74 6f | type an|d creato|
|00004f90| 72 20 28 61 6e 64 20 6f | 70 74 69 6f 6e 61 6c 6c |r (and o|ptionall|
|00004fa0| 79 20 74 68 65 20 6e 61 | 6d 65 29 20 6f 66 20 61 |y the na|me) of a|
|00004fb0| 6e 20 6f 75 74 67 6f 69 | 6e 67 0d 20 20 20 2a 20 |n outgoi|ng. * |
|00004fc0| 66 69 6c 65 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |file and| returns|
|00004fd0| 20 74 68 65 20 6d 6f 73 | 74 20 61 70 70 72 6f 70 | the mos|t approp|
|00004fe0| 72 69 61 74 65 20 6d 61 | 70 70 69 6e 67 73 20 64 |riate ma|ppings d|
|00004ff0| 61 74 61 62 61 73 65 20 | 65 6e 74 72 79 2e 0d 20 |atabase |entry.. |
|00005000| 20 20 2a 20 54 68 65 20 | 66 69 6c 65 6e 61 6d 65 | * The |filename|
|00005010| 20 6d 61 79 20 62 65 20 | 65 69 74 68 65 72 20 74 | may be |either t|
|00005020| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 6f |he name |of the o|
|00005030| 75 74 67 6f 69 6e 67 20 | 66 69 6c 65 20 6f 72 0d |utgoing |file or.|
|00005040| 20 20 20 2a 20 74 68 65 | 20 65 6d 70 74 79 20 73 | * the| empty s|
|00005050| 74 72 69 6e 67 2e 0d 20 | 20 20 2a 20 52 65 74 75 |tring.. | * Retu|
|00005060| 72 6e 73 20 69 63 50 72 | 65 66 4e 6f 74 46 6f 75 |rns icPr|efNotFou|
|00005070| 6e 64 45 72 72 20 69 66 | 20 6e 6f 20 73 75 69 74 |ndErr if| no suit|
|00005080| 61 62 6c 65 20 65 6e 74 | 72 79 20 66 6f 75 6e 64 |able ent|ry found|
|00005090| 2e 0d 20 20 20 2a 2f 0d | 0d 2f 2a 20 2d 2d 2d 2d |.. */.|./* ----|
|000050a0| 2d 20 4d 69 64 20 4c 65 | 76 65 6c 20 52 6f 75 74 |- Mid Le|vel Rout|
|000050b0| 69 6e 65 73 20 2d 2d 2d | 2d 2d 20 2a 2f 0d 0d 70 |ines ---|-- */..p|
|000050c0| 61 73 63 61 6c 20 49 43 | 45 72 72 6f 72 20 49 43 |ascal IC|Error IC|
|000050d0| 4d 61 70 45 6e 74 72 69 | 65 73 46 69 6c 65 6e 61 |MapEntri|esFilena|
|000050e0| 6d 65 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |me(ICIns|tance in|
|000050f0| 73 74 2c 20 48 61 6e 64 | 6c 65 20 65 6e 74 72 69 |st, Hand|le entri|
|00005100| 65 73 2c 20 43 6f 6e 73 | 74 53 74 72 32 35 35 50 |es, Cons|tStr255P|
|00005110| 61 72 61 6d 20 66 69 6c | 65 6e 61 6d 65 2c 20 49 |aram fil|ename, I|
|00005120| 43 4d 61 70 45 6e 74 72 | 79 20 2a 65 6e 74 72 79 |CMapEntr|y *entry|
|00005130| 29 3b 0d 20 20 2f 2a 20 | 52 65 71 75 69 72 65 73 |);. /* |Requires|
|00005140| 20 49 43 20 31 2e 31 2e | 0d 20 20 20 2a 20 59 6f | IC 1.1.|. * Yo|
|00005150| 75 20 6d 75 73 74 20 73 | 70 65 63 69 66 79 20 61 |u must s|pecify a|
|00005160| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 62 | configu|ration b|
|00005170| 65 66 6f 72 65 20 63 61 | 6c 6c 69 6e 67 20 74 68 |efore ca|lling th|
|00005180| 69 73 20 72 6f 75 74 69 | 6e 65 2e 0d 20 20 20 2a |is routi|ne.. *|
|00005190| 20 59 6f 75 20 64 6f 20 | 6e 6f 74 20 68 61 76 65 | You do |not have|
|000051a0| 20 74 6f 20 62 65 20 69 | 6e 73 69 64 65 20 61 6e | to be i|nside an|
|000051b0| 20 49 43 42 65 67 69 6e | 2f 45 6e 64 20 70 61 69 | ICBegin|/End pai|
|000051c0| 72 20 74 6f 20 63 61 6c | 6c 20 74 68 69 73 20 72 |r to cal|l this r|
|000051d0| 6f 75 74 69 6e 65 2e 0d | 20 20 20 2a 20 54 61 6b |outine..| * Tak|
|000051e0| 65 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 61 |es the n|ame of a|
|000051f0| 6e 20 69 6e 63 6f 6d 69 | 6e 67 20 66 69 6c 65 20 |n incomi|ng file |
|00005200| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |and retu|rns the |
|00005210| 6d 6f 73 74 20 61 70 70 | 72 6f 70 72 69 61 74 65 |most app|ropriate|
|00005220| 0d 20 20 20 2a 20 6d 61 | 70 70 69 6e 67 73 20 64 |. * ma|ppings d|
|00005230| 61 74 61 62 61 73 65 20 | 65 6e 74 72 79 2c 20 62 |atabase |entry, b|
|00005240| 61 73 65 64 20 6f 6e 20 | 69 74 73 20 65 78 74 65 |ased on |its exte|
|00005250| 6e 73 69 6f 6e 2e 0d 20 | 20 20 2a 20 65 6e 74 72 |nsion.. | * entr|
|00005260| 69 65 73 20 6d 75 73 74 | 20 62 65 20 61 20 68 61 |ies must| be a ha|
|00005270| 6e 64 6c 65 20 74 6f 20 | 61 20 76 61 6c 69 64 20 |ndle to |a valid |
|00005280| 49 43 20 6d 61 70 70 69 | 6e 67 73 20 64 61 74 61 |IC mappi|ngs data|
|00005290| 62 61 73 65 20 70 72 65 | 66 65 72 65 6e 63 65 2e |base pre|ference.|
|000052a0| 0d 20 20 20 2a 20 66 69 | 6c 65 6e 61 6d 65 20 6d |. * fi|lename m|
|000052b0| 75 73 74 20 6e 6f 74 20 | 62 65 20 74 68 65 20 65 |ust not |be the e|
|000052c0| 6d 70 74 79 20 73 74 72 | 69 6e 67 2e 0d 20 20 20 |mpty str|ing.. |
|000052d0| 2a 20 52 65 74 75 72 6e | 73 20 69 63 50 72 65 66 |* Return|s icPref|
|000052e0| 4e 6f 74 46 6f 75 6e 64 | 45 72 72 20 69 66 20 6e |NotFound|Err if n|
|000052f0| 6f 20 73 75 69 74 61 62 | 6c 65 20 65 6e 74 72 79 |o suitab|le entry|
|00005300| 20 69 73 20 66 6f 75 6e | 64 2e 0d 20 20 20 2a 2f | is foun|d.. */|
|00005310| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|00005320| 20 49 43 4d 61 70 45 6e | 74 72 69 65 73 54 79 70 | ICMapEn|triesTyp|
|00005330| 65 43 72 65 61 74 6f 72 | 28 49 43 49 6e 73 74 61 |eCreator|(ICInsta|
|00005340| 6e 63 65 20 69 6e 73 74 | 2c 20 48 61 6e 64 6c 65 |nce inst|, Handle|
|00005350| 20 65 6e 74 72 69 65 73 | 2c 20 4f 53 54 79 70 65 | entries|, OSType|
|00005360| 20 66 54 79 70 65 2c 20 | 4f 53 54 79 70 65 20 66 | fType, |OSType f|
|00005370| 43 72 65 61 74 6f 72 2c | 20 43 6f 6e 73 74 53 74 |Creator,| ConstSt|
|00005380| 72 32 35 35 50 61 72 61 | 6d 20 66 69 6c 65 6e 61 |r255Para|m filena|
|00005390| 6d 65 2c 20 49 43 4d 61 | 70 45 6e 74 72 79 20 2a |me, ICMa|pEntry *|
|000053a0| 65 6e 74 72 79 29 3b 0d | 20 20 2f 2a 20 52 65 71 |entry);.| /* Req|
|000053b0| 75 69 72 65 73 20 49 43 | 20 31 2e 31 2e 0d 20 20 |uires IC| 1.1.. |
|000053c0| 20 2a 20 59 6f 75 20 6d | 75 73 74 20 73 70 65 63 | * You m|ust spec|
|000053d0| 69 66 79 20 61 20 63 6f | 6e 66 69 67 75 72 61 74 |ify a co|nfigurat|
|000053e0| 69 6f 6e 20 62 65 66 6f | 72 65 20 63 61 6c 6c 69 |ion befo|re calli|
|000053f0| 6e 67 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 2e |ng this |routine.|
|00005400| 0d 20 20 20 2a 20 59 6f | 75 20 64 6f 20 6e 6f 74 |. * Yo|u do not|
|00005410| 20 68 61 76 65 20 74 6f | 20 62 65 20 69 6e 73 69 | have to| be insi|
|00005420| 64 65 20 61 6e 20 49 43 | 42 65 67 69 6e 2f 45 6e |de an IC|Begin/En|
|00005430| 64 20 70 61 69 72 20 74 | 6f 20 63 61 6c 6c 20 74 |d pair t|o call t|
|00005440| 68 69 73 20 72 6f 75 74 | 69 6e 65 2e 0d 20 20 20 |his rout|ine.. |
|00005450| 2a 20 54 61 6b 65 73 20 | 74 68 65 20 74 79 70 65 |* Takes |the type|
|00005460| 20 61 6e 64 20 63 72 65 | 61 74 6f 72 20 28 61 6e | and cre|ator (an|
|00005470| 64 20 6f 70 74 69 6f 6e | 61 6c 6c 79 20 74 68 65 |d option|ally the|
|00005480| 20 6e 61 6d 65 29 20 6f | 66 20 61 6e 20 6f 75 74 | name) o|f an out|
|00005490| 67 6f 69 6e 67 0d 20 20 | 20 2a 20 66 69 6c 65 20 |going. | * file |
|000054a0| 61 6e 64 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |and retu|rns the |
|000054b0| 6d 6f 73 74 20 61 70 70 | 72 6f 70 72 69 61 74 65 |most app|ropriate|
|000054c0| 20 6d 61 70 70 69 6e 67 | 73 20 64 61 74 61 62 61 | mapping|s databa|
|000054d0| 73 65 20 65 6e 74 72 79 | 2e 0d 20 20 20 2a 20 65 |se entry|.. * e|
|000054e0| 6e 74 72 69 65 73 20 6d | 75 73 74 20 62 65 20 61 |ntries m|ust be a|
|000054f0| 20 68 61 6e 64 6c 65 20 | 74 6f 20 61 20 76 61 6c | handle |to a val|
|00005500| 69 64 20 49 43 20 6d 61 | 70 70 69 6e 67 73 20 64 |id IC ma|ppings d|
|00005510| 61 74 61 62 61 73 65 20 | 70 72 65 66 65 72 65 6e |atabase |preferen|
|00005520| 63 65 2e 0d 20 20 20 2a | 20 54 68 65 20 66 69 6c |ce.. *| The fil|
|00005530| 65 6e 61 6d 65 20 6d 61 | 79 20 62 65 20 65 69 74 |ename ma|y be eit|
|00005540| 68 65 72 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |her the |name of |
|00005550| 74 68 65 20 6f 75 74 67 | 6f 69 6e 67 20 66 69 6c |the outg|oing fil|
|00005560| 65 20 6f 72 0d 20 20 20 | 2a 20 74 68 65 20 65 6d |e or. |* the em|
|00005570| 70 74 79 20 73 74 72 69 | 6e 67 2e 0d 20 20 20 2a |pty stri|ng.. *|
|00005580| 20 52 65 74 75 72 6e 73 | 20 69 63 50 72 65 66 4e | Returns| icPrefN|
|00005590| 6f 74 46 6f 75 6e 64 45 | 72 72 20 69 66 20 6e 6f |otFoundE|rr if no|
|000055a0| 20 73 75 69 74 61 62 6c | 65 20 65 6e 74 72 79 20 | suitabl|e entry |
|000055b0| 66 6f 75 6e 64 2e 0d 20 | 20 20 2a 2f 0d 0d 2f 2a |found.. | */../*|
|000055c0| 20 2d 2d 2d 2d 2d 20 4c | 6f 77 20 4c 65 76 65 6c | ----- L|ow Level|
|000055d0| 20 52 6f 75 74 69 6e 65 | 73 20 2d 2d 2d 2d 2d 20 | Routine|s ----- |
|000055e0| 2a 2f 0d 0d 70 61 73 63 | 61 6c 20 49 43 45 72 72 |*/..pasc|al ICErr|
|000055f0| 6f 72 20 49 43 43 6f 75 | 6e 74 4d 61 70 45 6e 74 |or ICCou|ntMapEnt|
|00005600| 72 69 65 73 28 49 43 49 | 6e 73 74 61 6e 63 65 20 |ries(ICI|nstance |
|00005610| 69 6e 73 74 2c 20 48 61 | 6e 64 6c 65 20 65 6e 74 |inst, Ha|ndle ent|
|00005620| 72 69 65 73 2c 20 6c 6f | 6e 67 20 2a 63 6f 75 6e |ries, lo|ng *coun|
|00005630| 74 29 3b 0d 20 20 2f 2a | 20 52 65 71 75 69 72 65 |t);. /*| Require|
|00005640| 73 20 49 43 20 31 2e 31 | 2e 0d 20 20 20 2a 20 59 |s IC 1.1|.. * Y|
|00005650| 6f 75 20 6d 75 73 74 20 | 73 70 65 63 69 66 79 20 |ou must |specify |
|00005660| 61 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |a config|uration |
|00005670| 62 65 66 6f 72 65 20 63 | 61 6c 6c 69 6e 67 20 74 |before c|alling t|
|00005680| 68 69 73 20 72 6f 75 74 | 69 6e 65 2e 0d 20 20 20 |his rout|ine.. |
|00005690| 2a 20 59 6f 75 20 64 6f | 20 6e 6f 74 20 68 61 76 |* You do| not hav|
|000056a0| 65 20 74 6f 20 62 65 20 | 69 6e 73 69 64 65 20 61 |e to be |inside a|
|000056b0| 6e 20 49 43 42 65 67 69 | 6e 2f 45 6e 64 20 70 61 |n ICBegi|n/End pa|
|000056c0| 69 72 20 74 6f 20 63 61 | 6c 6c 20 74 68 69 73 20 |ir to ca|ll this |
|000056d0| 72 6f 75 74 69 6e 65 2e | 0d 20 20 20 2a 20 43 6f |routine.|. * Co|
|000056e0| 75 6e 74 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |unts the| number |
|000056f0| 6f 66 20 65 6e 74 72 69 | 65 73 20 69 6e 20 74 68 |of entri|es in th|
|00005700| 65 20 6d 61 70 70 69 6e | 67 73 20 64 61 74 61 62 |e mappin|gs datab|
|00005710| 61 73 65 2e 0d 20 20 20 | 2a 20 65 6e 74 72 69 65 |ase.. |* entrie|
|00005720| 73 20 6d 75 73 74 20 62 | 65 20 61 20 68 61 6e 64 |s must b|e a hand|
|00005730| 6c 65 20 74 6f 20 61 20 | 76 61 6c 69 64 20 49 43 |le to a |valid IC|
|00005740| 20 6d 61 70 70 69 6e 67 | 73 20 64 61 74 61 62 61 | mapping|s databa|
|00005750| 73 65 20 70 72 65 66 65 | 72 65 6e 63 65 2e 0d 20 |se prefe|rence.. |
|00005760| 20 20 2a 20 63 6f 75 6e | 74 20 69 73 20 73 65 74 | * coun|t is set|
|00005770| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|00005780| 66 20 65 6e 74 72 69 65 | 73 2e 0d 20 20 20 2a 2f |f entrie|s.. */|
|00005790| 0d 0d 70 61 73 63 61 6c | 20 49 43 45 72 72 6f 72 |..pascal| ICError|
|000057a0| 20 49 43 47 65 74 49 6e | 64 4d 61 70 45 6e 74 72 | ICGetIn|dMapEntr|
|000057b0| 79 28 49 43 49 6e 73 74 | 61 6e 63 65 20 69 6e 73 |y(ICInst|ance ins|
|000057c0| 74 2c 20 48 61 6e 64 6c | 65 20 65 6e 74 72 69 65 |t, Handl|e entrie|
|000057d0| 73 2c 20 6c 6f 6e 67 20 | 6e 64 78 2c 20 6c 6f 6e |s, long |ndx, lon|
|000057e0| 67 20 2a 70 6f 73 2c 20 | 49 43 4d 61 70 45 6e 74 |g *pos, |ICMapEnt|
|000057f0| 72 79 20 2a 65 6e 74 72 | 79 29 3b 0d 20 20 2f 2a |ry *entr|y);. /*|
|00005800| 20 52 65 71 75 69 72 65 | 73 20 49 43 20 31 2e 31 | Require|s IC 1.1|
|00005810| 2e 0d 20 20 20 2a 20 59 | 6f 75 20 6d 75 73 74 20 |.. * Y|ou must |
|00005820| 73 70 65 63 69 66 79 20 | 61 20 63 6f 6e 66 69 67 |specify |a config|
|00005830| 75 72 61 74 69 6f 6e 20 | 62 65 66 6f 72 65 20 63 |uration |before c|
|00005840| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 72 6f 75 74 |alling t|his rout|
|00005850| 69 6e 65 2e 0d 20 20 20 | 2a 20 59 6f 75 20 64 6f |ine.. |* You do|
|00005860| 20 6e 6f 74 20 68 61 76 | 65 20 74 6f 20 62 65 20 | not hav|e to be |
|00005870| 69 6e 73 69 64 65 20 61 | 6e 20 49 43 42 65 67 69 |inside a|n ICBegi|
|00005880| 6e 2f 45 6e 64 20 70 61 | 69 72 20 74 6f 20 63 61 |n/End pa|ir to ca|
|00005890| 6c 6c 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 2e |ll this |routine.|
|000058a0| 0d 20 20 20 2a 20 47 65 | 74 73 20 74 68 65 20 6e |. * Ge|ts the n|
|000058b0| 64 78 27 74 68 20 65 6e | 74 72 79 20 69 6e 20 74 |dx'th en|try in t|
|000058c0| 68 65 20 6d 61 70 70 69 | 6e 67 73 20 64 61 74 61 |he mappi|ngs data|
|000058d0| 62 61 73 65 2e 0d 20 20 | 20 2a 20 65 6e 74 72 69 |base.. | * entri|
|000058e0| 65 73 20 6d 75 73 74 20 | 62 65 20 61 20 68 61 6e |es must |be a han|
|000058f0| 64 6c 65 20 74 6f 20 61 | 20 76 61 6c 69 64 20 49 |dle to a| valid I|
|00005900| 43 20 6d 61 70 70 69 6e | 67 73 20 64 61 74 61 62 |C mappin|gs datab|
|00005910| 61 73 65 20 70 72 65 66 | 65 72 65 6e 63 65 2e 0d |ase pref|erence..|
|00005920| 20 20 20 2a 20 6e 64 78 | 20 6d 75 73 74 20 62 65 | * ndx| must be|
|00005930| 20 69 6e 20 74 68 65 20 | 72 61 6e 67 65 20 66 72 | in the |range fr|
|00005940| 6f 6d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 |om 1 to |the numb|
|00005950| 65 72 20 6f 66 20 65 6e | 74 72 69 65 73 20 69 6e |er of en|tries in|
|00005960| 20 74 68 65 20 64 61 74 | 61 62 61 73 65 2e 0d 20 | the dat|abase.. |
|00005970| 20 20 2a 20 54 68 65 20 | 76 61 6c 75 65 20 6f 66 | * The |value of|
|00005980| 20 70 6f 73 20 69 73 20 | 69 67 6e 6f 72 65 64 20 | pos is |ignored |
|00005990| 6f 6e 20 69 6e 70 75 74 | 2e 20 70 6f 73 20 69 73 |on input|. pos is|
|000059a0| 20 73 65 74 20 74 6f 20 | 74 68 65 20 70 6f 73 69 | set to |the posi|
|000059b0| 74 69 6f 6e 20 6f 66 0d | 20 20 20 2a 20 74 68 65 |tion of.| * the|
|000059c0| 20 6e 64 78 27 74 68 20 | 65 6e 74 72 79 20 69 6e | ndx'th |entry in|
|000059d0| 20 74 68 65 20 64 61 74 | 61 62 61 73 65 20 61 6e | the dat|abase an|
|000059e0| 64 20 69 73 20 73 75 69 | 74 61 62 6c 65 20 66 6f |d is sui|table fo|
|000059f0| 72 20 70 61 73 73 69 6e | 67 20 62 61 63 6b 0d 20 |r passin|g back. |
|00005a00| 20 20 2a 20 69 6e 74 6f | 20 49 43 53 65 74 4d 61 | * into| ICSetMa|
|00005a10| 70 45 6e 74 72 79 2e 0d | 20 20 20 2a 20 44 6f 65 |pEntry..| * Doe|
|00005a20| 73 20 6e 6f 74 20 72 65 | 74 75 72 6e 20 61 6e 79 |s not re|turn any|
|00005a30| 20 75 73 65 72 20 64 61 | 74 61 20 61 73 73 6f 63 | user da|ta assoc|
|00005a40| 69 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 65 |iated wi|th the e|
|00005a50| 6e 74 72 79 2e 0d 20 20 | 20 2a 2f 0d 0d 70 61 73 |ntry.. | */..pas|
|00005a60| 63 61 6c 20 49 43 45 72 | 72 6f 72 20 49 43 47 65 |cal ICEr|ror ICGe|
|00005a70| 74 4d 61 70 45 6e 74 72 | 79 28 49 43 49 6e 73 74 |tMapEntr|y(ICInst|
|00005a80| 61 6e 63 65 20 69 6e 73 | 74 2c 20 48 61 6e 64 6c |ance ins|t, Handl|
|00005a90| 65 20 65 6e 74 72 69 65 | 73 2c 20 6c 6f 6e 67 20 |e entrie|s, long |
|00005aa0| 70 6f 73 2c 20 49 43 4d | 61 70 45 6e 74 72 79 20 |pos, ICM|apEntry |
|00005ab0| 2a 65 6e 74 72 79 29 3b | 0d 20 20 2f 2a 20 52 65 |*entry);|. /* Re|
|00005ac0| 71 75 69 72 65 73 20 49 | 43 20 31 2e 31 2e 0d 20 |quires I|C 1.1.. |
|00005ad0| 20 20 2a 20 59 6f 75 20 | 6d 75 73 74 20 73 70 65 | * You |must spe|
|00005ae0| 63 69 66 79 20 61 20 63 | 6f 6e 66 69 67 75 72 61 |cify a c|onfigura|
|00005af0| 74 69 6f 6e 20 62 65 66 | 6f 72 65 20 63 61 6c 6c |tion bef|ore call|
|00005b00| 69 6e 67 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |ing this| routine|
|00005b10| 2e 0d 20 20 20 2a 20 59 | 6f 75 20 64 6f 20 6e 6f |.. * Y|ou do no|
|00005b20| 74 20 68 61 76 65 20 74 | 6f 20 62 65 20 69 6e 73 |t have t|o be ins|
|00005b30| 69 64 65 20 61 6e 20 49 | 43 42 65 67 69 6e 2f 45 |ide an I|CBegin/E|
|00005b40| 6e 64 20 70 61 69 72 20 | 74 6f 20 63 61 6c 6c 20 |nd pair |to call |
|00005b50| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 2e 0d 20 20 |this rou|tine.. |
|00005b60| 20 2a 20 52 65 74 75 72 | 6e 73 20 74 68 65 20 65 | * Retur|ns the e|
|00005b70| 6e 74 72 79 20 6c 6f 63 | 61 74 65 64 20 61 74 20 |ntry loc|ated at |
|00005b80| 70 6f 73 69 74 69 6f 6e | 20 70 6f 73 20 69 6e 20 |position| pos in |
|00005b90| 74 68 65 20 6d 61 70 70 | 69 6e 67 73 20 64 61 74 |the mapp|ings dat|
|00005ba0| 61 62 61 73 65 2e 0d 20 | 20 20 2a 20 65 6e 74 72 |abase.. | * entr|
|00005bb0| 69 65 73 20 6d 75 73 74 | 20 62 65 20 61 20 68 61 |ies must| be a ha|
|00005bc0| 6e 64 6c 65 20 74 6f 20 | 61 20 76 61 6c 69 64 20 |ndle to |a valid |
|00005bd0| 49 43 20 6d 61 70 70 69 | 6e 67 73 20 64 61 74 61 |IC mappi|ngs data|
|00005be0| 62 61 73 65 20 70 72 65 | 66 65 72 65 6e 63 65 2e |base pre|ference.|
|00005bf0| 0d 20 20 20 2a 20 70 6f | 73 20 73 68 6f 75 6c 64 |. * po|s should|
|00005c00| 20 62 65 20 30 20 74 6f | 20 67 65 74 20 74 68 65 | be 0 to| get the|
|00005c10| 20 66 69 72 73 74 20 65 | 6e 74 72 79 2e 20 54 6f | first e|ntry. To|
|00005c20| 20 67 65 74 20 74 68 65 | 20 73 75 62 73 65 71 75 | get the| subsequ|
|00005c30| 65 6e 74 20 65 6e 74 72 | 69 65 73 2c 20 61 64 64 |ent entr|ies, add|
|00005c40| 0d 20 20 20 2a 20 65 6e | 74 72 79 2e 74 6f 74 61 |. * en|try.tota|
|00005c50| 6c 5f 73 69 7a 65 20 74 | 6f 20 70 6f 73 20 61 6e |l_size t|o pos an|
|00005c60| 64 20 69 74 65 72 61 74 | 65 2e 0d 20 20 20 2a 20 |d iterat|e.. * |
|00005c70| 44 6f 65 73 20 6e 6f 74 | 20 72 65 74 75 72 6e 20 |Does not| return |
|00005c80| 61 6e 79 20 75 73 65 72 | 20 64 61 74 61 20 61 73 |any user| data as|
|00005c90| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 74 68 |sociated| with th|
|00005ca0| 65 20 65 6e 74 72 79 2e | 0d 20 20 20 2a 2f 0d 0d |e entry.|. */..|
|00005cb0| 70 61 73 63 61 6c 20 49 | 43 45 72 72 6f 72 20 49 |pascal I|CError I|
|00005cc0| 43 53 65 74 4d 61 70 45 | 6e 74 72 79 28 49 43 49 |CSetMapE|ntry(ICI|
|00005cd0| 6e 73 74 61 6e 63 65 20 | 69 6e 73 74 2c 20 48 61 |nstance |inst, Ha|
|00005ce0| 6e 64 6c 65 20 65 6e 74 | 72 69 65 73 2c 20 6c 6f |ndle ent|ries, lo|
|00005cf0| 6e 67 20 70 6f 73 2c 20 | 49 43 4d 61 70 45 6e 74 |ng pos, |ICMapEnt|
|00005d00| 72 79 20 2a 65 6e 74 72 | 79 29 3b 0d 20 20 2f 2a |ry *entr|y);. /*|
|00005d10| 20 52 65 71 75 69 72 65 | 73 20 49 43 20 31 2e 31 | Require|s IC 1.1|
|00005d20| 2e 0d 20 20 20 2a 20 59 | 6f 75 20 6d 75 73 74 20 |.. * Y|ou must |
|00005d30| 73 70 65 63 69 66 79 20 | 61 20 63 6f 6e 66 69 67 |specify |a config|
|00005d40| 75 72 61 74 69 6f 6e 20 | 62 65 66 6f 72 65 20 63 |uration |before c|
|00005d50| 61 6c 6c 69 6e 67 20 74 | 68 69 73 20 72 6f 75 74 |alling t|his rout|
|00005d60| 69 6e 65 2e 0d 20 20 20 | 2a 20 59 6f 75 20 64 6f |ine.. |* You do|
|00005d70| 20 6e 6f 74 20 68 61 76 | 65 20 74 6f 20 62 65 20 | not hav|e to be |
|00005d80| 69 6e 73 69 64 65 20 61 | 6e 20 49 43 42 65 67 69 |inside a|n ICBegi|
|00005d90| 6e 2f 45 6e 64 20 70 61 | 69 72 20 74 6f 20 63 61 |n/End pa|ir to ca|
|00005da0| 6c 6c 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 2e |ll this |routine.|
|00005db0| 0d 20 20 20 2a 20 53 65 | 74 73 20 74 68 65 20 65 |. * Se|ts the e|
|00005dc0| 6e 74 72 79 20 6c 6f 63 | 61 74 65 64 20 61 74 20 |ntry loc|ated at |
|00005dd0| 70 6f 73 69 74 69 6f 6e | 20 70 6f 73 20 69 6e 20 |position| pos in |
|00005de0| 74 68 65 20 6d 61 70 70 | 69 6e 67 73 20 64 61 74 |the mapp|ings dat|
|00005df0| 61 62 61 73 65 2e 0d 20 | 20 20 2a 20 65 6e 74 72 |abase.. | * entr|
|00005e00| 69 65 73 20 6d 75 73 74 | 20 62 65 20 61 20 68 61 |ies must| be a ha|
|00005e10| 6e 64 6c 65 20 74 6f 20 | 61 20 76 61 6c 69 64 20 |ndle to |a valid |
|00005e20| 49 43 20 6d 61 70 70 69 | 6e 67 73 20 64 61 74 61 |IC mappi|ngs data|
|00005e30| 62 61 73 65 20 70 72 65 | 66 65 72 65 6e 63 65 2e |base pre|ference.|
|00005e40| 0d 20 20 20 2a 20 70 6f | 73 20 73 68 6f 75 6c 64 |. * po|s should|
|00005e50| 20 62 65 20 65 69 74 68 | 65 72 20 61 20 76 61 6c | be eith|er a val|
|00005e60| 75 65 20 72 65 74 75 72 | 6e 65 64 20 66 72 6f 6d |ue retur|ned from|
|00005e70| 20 49 43 47 65 74 49 6e | 64 4d 61 70 45 6e 74 72 | ICGetIn|dMapEntr|
|00005e80| 79 20 6f 72 20 61 20 76 | 61 6c 75 65 0d 20 20 20 |y or a v|alue. |
|00005e90| 2a 20 63 61 6c 63 75 6c | 61 74 65 64 20 75 73 69 |* calcul|ated usi|
|00005ea0| 6e 67 20 49 43 47 65 74 | 4d 61 70 45 6e 74 72 79 |ng ICGet|MapEntry|
|00005eb0| 2e 0d 20 20 20 2a 20 65 | 6e 74 72 79 20 69 73 20 |.. * e|ntry is |
|00005ec0| 61 20 76 61 72 20 70 61 | 72 61 6d 65 74 65 72 20 |a var pa|rameter |
|00005ed0| 70 75 72 65 6c 79 20 66 | 6f 72 20 73 74 61 63 6b |purely f|or stack|
|00005ee0| 20 73 70 61 63 65 20 72 | 65 61 73 6f 6e 73 2e 20 | space r|easons. |
|00005ef0| 49 74 20 69 73 20 6e 6f | 74 0d 20 20 20 2a 20 6d |It is no|t. * m|
|00005f00| 6f 64 69 66 69 65 64 20 | 69 6e 20 61 6e 79 20 77 |odified |in any w|
|00005f10| 61 79 2e 0d 20 20 20 2a | 20 41 6e 79 20 75 73 65 |ay.. *| Any use|
|00005f20| 72 20 64 61 74 61 20 61 | 73 73 6f 63 69 61 74 65 |r data a|ssociate|
|00005f30| 64 20 77 69 74 68 20 74 | 68 65 20 65 6e 74 72 79 |d with t|he entry|
|00005f40| 20 69 73 20 75 6e 6d 6f | 64 69 66 69 65 64 2e 0d | is unmo|dified..|
|00005f50| 20 20 20 2a 2f 0d 0d 70 | 61 73 63 61 6c 20 49 43 | */..p|ascal IC|
|00005f60| 45 72 72 6f 72 20 49 43 | 44 65 6c 65 74 65 4d 61 |Error IC|DeleteMa|
|00005f70| 70 45 6e 74 72 79 28 49 | 43 49 6e 73 74 61 6e 63 |pEntry(I|CInstanc|
|00005f80| 65 20 69 6e 73 74 2c 20 | 48 61 6e 64 6c 65 20 65 |e inst, |Handle e|
|00005f90| 6e 74 72 69 65 73 2c 20 | 6c 6f 6e 67 20 70 6f 73 |ntries, |long pos|
|00005fa0| 29 3b 0d 20 20 2f 2a 20 | 52 65 71 75 69 72 65 73 |);. /* |Requires|
|00005fb0| 20 49 43 20 31 2e 31 2e | 0d 20 20 20 2a 20 59 6f | IC 1.1.|. * Yo|
|00005fc0| 75 20 6d 75 73 74 20 73 | 70 65 63 69 66 79 20 61 |u must s|pecify a|
|00005fd0| 20 63 6f 6e 66 69 67 75 | 72 61 74 69 6f 6e 20 62 | configu|ration b|
|00005fe0| 65 66 6f 72 65 20 63 61 | 6c 6c 69 6e 67 20 74 68 |efore ca|lling th|
|00005ff0| 69 73 20 72 6f 75 74 69 | 6e 65 2e 0d 20 20 20 2a |is routi|ne.. *|
|00006000| 20 59 6f 75 20 64 6f 20 | 6e 6f 74 20 68 61 76 65 | You do |not have|
|00006010| 20 74 6f 20 62 65 20 69 | 6e 73 69 64 65 20 61 6e | to be i|nside an|
|00006020| 20 49 43 42 65 67 69 6e | 2f 45 6e 64 20 70 61 69 | ICBegin|/End pai|
|00006030| 72 20 74 6f 20 63 61 6c | 6c 20 74 68 69 73 20 72 |r to cal|l this r|
|00006040| 6f 75 74 69 6e 65 2e 0d | 20 20 20 2a 20 44 65 6c |outine..| * Del|
|00006050| 65 74 65 73 20 74 68 65 | 20 6d 61 70 70 69 6e 67 |etes the| mapping|
|00006060| 73 20 64 61 74 61 62 61 | 73 65 20 65 6e 74 72 79 |s databa|se entry|
|00006070| 20 61 74 20 70 6f 73 2e | 0d 20 20 20 2a 20 65 6e | at pos.|. * en|
|00006080| 74 72 69 65 73 20 6d 75 | 73 74 20 62 65 20 61 20 |tries mu|st be a |
|00006090| 68 61 6e 64 6c 65 20 74 | 6f 20 61 20 76 61 6c 69 |handle t|o a vali|
|000060a0| 64 20 49 43 20 6d 61 70 | 70 69 6e 67 73 20 64 61 |d IC map|pings da|
|000060b0| 74 61 62 61 73 65 20 70 | 72 65 66 65 72 65 6e 63 |tabase p|referenc|
|000060c0| 65 2e 0d 20 20 20 2a 20 | 70 6f 73 20 73 68 6f 75 |e.. * |pos shou|
|000060d0| 6c 64 20 62 65 20 65 69 | 74 68 65 72 20 61 20 76 |ld be ei|ther a v|
|000060e0| 61 6c 75 65 20 72 65 74 | 75 72 6e 65 64 20 66 72 |alue ret|urned fr|
|000060f0| 6f 6d 20 49 43 47 65 74 | 49 6e 64 4d 61 70 45 6e |om ICGet|IndMapEn|
|00006100| 74 72 79 20 6f 72 20 61 | 20 76 61 6c 75 65 0d 20 |try or a| value. |
|00006110| 20 20 2a 20 63 61 6c 63 | 75 6c 61 74 65 64 20 75 | * calc|ulated u|
|00006120| 73 69 6e 67 20 49 43 47 | 65 74 4d 61 70 45 6e 74 |sing ICG|etMapEnt|
|00006130| 72 79 2e 0d 20 20 20 2a | 20 41 6c 73 6f 20 64 65 |ry.. *| Also de|
|00006140| 6c 65 74 65 73 20 61 6e | 79 20 75 73 65 72 20 64 |letes an|y user d|
|00006150| 61 74 61 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ata asso|ciated w|
|00006160| 69 74 68 20 74 68 65 20 | 65 6e 74 72 79 2e 0d 20 |ith the |entry.. |
|00006170| 20 20 2a 2f 0d 0d 70 61 | 73 63 61 6c 20 49 43 45 | */..pa|scal ICE|
|00006180| 72 72 6f 72 20 49 43 41 | 64 64 4d 61 70 45 6e 74 |rror ICA|ddMapEnt|
|00006190| 72 79 28 49 43 49 6e 73 | 74 61 6e 63 65 20 69 6e |ry(ICIns|tance in|
|000061a0| 73 74 2c 20 48 61 6e 64 | 6c 65 20 65 6e 74 72 69 |st, Hand|le entri|
|000061b0| 65 73 2c 20 49 43 4d 61 | 70 45 6e 74 72 79 20 2a |es, ICMa|pEntry *|
|000061c0| 65 6e 74 72 79 29 3b 0d | 20 20 2f 2a 20 52 65 71 |entry);.| /* Req|
|000061d0| 75 69 72 65 73 20 49 43 | 20 31 2e 31 2e 0d 20 20 |uires IC| 1.1.. |
|000061e0| 20 2a 20 59 6f 75 20 6d | 75 73 74 20 73 70 65 63 | * You m|ust spec|
|000061f0| 69 66 79 20 61 20 63 6f | 6e 66 69 67 75 72 61 74 |ify a co|nfigurat|
|00006200| 69 6f 6e 20 62 65 66 6f | 72 65 20 63 61 6c 6c 69 |ion befo|re calli|
|00006210| 6e 67 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 2e |ng this |routine.|
|00006220| 0d 20 20 20 2a 20 59 6f | 75 20 64 6f 20 6e 6f 74 |. * Yo|u do not|
|00006230| 20 68 61 76 65 20 74 6f | 20 62 65 20 69 6e 73 69 | have to| be insi|
|00006240| 64 65 20 61 6e 20 49 43 | 42 65 67 69 6e 2f 45 6e |de an IC|Begin/En|
|00006250| 64 20 70 61 69 72 20 74 | 6f 20 63 61 6c 6c 20 74 |d pair t|o call t|
|00006260| 68 69 73 20 72 6f 75 74 | 69 6e 65 2e 0d 20 20 20 |his rout|ine.. |
|00006270| 2a 20 41 64 64 73 20 61 | 6e 20 65 6e 74 72 79 20 |* Adds a|n entry |
|00006280| 74 6f 20 74 68 65 20 6d | 61 70 70 69 6e 67 73 20 |to the m|appings |
|00006290| 64 61 74 61 62 61 73 65 | 2e 0d 20 20 20 2a 20 65 |database|.. * e|
|000062a0| 6e 74 72 69 65 73 20 6d | 75 73 74 20 62 65 20 61 |ntries m|ust be a|
|000062b0| 20 68 61 6e 64 6c 65 20 | 74 6f 20 61 20 76 61 6c | handle |to a val|
|000062c0| 69 64 20 49 43 20 6d 61 | 70 70 69 6e 67 73 20 64 |id IC ma|ppings d|
|000062d0| 61 74 61 62 61 73 65 20 | 70 72 65 66 65 72 65 6e |atabase |preferen|
|000062e0| 63 65 2e 0d 20 20 20 2a | 20 54 68 65 20 65 6e 74 |ce.. *| The ent|
|000062f0| 72 79 20 69 73 20 61 64 | 64 65 64 20 74 6f 20 74 |ry is ad|ded to t|
|00006300| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 65 6e |he end o|f the en|
|00006310| 74 72 69 65 73 20 64 61 | 74 61 62 61 73 65 2e 0d |tries da|tabase..|
|00006320| 20 20 20 2a 20 4e 6f 20 | 75 73 65 72 20 64 61 74 | * No |user dat|
|00006330| 61 20 69 73 20 61 64 64 | 65 64 2e 0d 20 20 20 2a |a is add|ed.. *|
|00006340| 2f 0d 0d 0d 2f 2a 20 a5 | a5 a5 45 6e 64 20 49 43 |/.../* .|..End IC|
|00006350| 41 50 49 2e 68 a5 a5 a5 | 20 2a 2f 0d 0d 23 69 66 |API.h...| */..#if|
|00006360| 64 65 66 20 5f 5f 63 70 | 6c 75 73 70 6c 75 73 0d |def __cp|lusplus.|
|00006370| 65 78 74 65 72 6e 20 22 | 43 22 20 7b 0d 23 65 6e |extern "|C" {.#en|
|00006380| 64 69 66 0d 0d 0d 23 69 | 66 64 65 66 20 5f 5f 63 |dif...#i|fdef __c|
|00006390| 70 6c 75 73 70 6c 75 73 | 0d 7d 0d 23 65 6e 64 69 |plusplus|.}.#endi|
|000063a0| 66 0d 0d 23 65 6e 64 69 | 66 0d 00 00 00 00 00 00 |f..#endi|f.......|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.